Hi,
I have an automation that runs if a parent link is added, changed, or removed from an issue.
My main problem :
When I create an issue from an EPIC, it seems, that it both creates and edits the issue. so.. the rule runs twice.
I created separated automations for creating and editing issues, and it confirmed the behaviour..
the rune is rules once for creation and once for edition when creating an issue directly from an Epic.
Also... when I create an issue without linking it from scratch to an Epic, I get an error.
Some help on that would be much appreciated.
Hi @Anna
I have seen this symptom noted in a few other posts: issue linking does not occur at the time of issue create, and instead happens as a separate edit. This happens for manual issue creation and by automation rules.
Which is curious as the REST API does support adding one link, but not several. And so that is probably why this design was used. There is an open defect / suggestion to allow adding multiple links during issue create: https://jira.atlassian.com/browse/JRACLOUD-81845
So on to work-arounds...
One way to solve this is to remove the Create Issue selection from the trigger. For your scenario you want to perform the same action for create and edit, and so eliminating the create selection should solve the double rule execution.
However, I notice some things in your rule and wonder:
Essentially, are you trying to sync the labels from the parent down to children, or only perform the one-time set of values?
Kind regards,
Bill
Hi @Bill Sheboy
Thank you for your reply.
Indeed, deactivating the "creation" trigger helps ! I am ashamed I didn't think about it 😅
To answer your last questions :
Yes, I am trying to sync the labels from the parent down to children. But as the parent might never change.. it is ok to do it this way. But if you have a better way, I would be more than happy to learn it.
Kind regards,
Anna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am glad to learn that helped...and apologies in advance for my long, follow-up answer :^)
Sync of fields is not something built-into Jira. And so it helps to consider the different scenarios, and which ones you want to address...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Eheh I hoped you had a magic way of doing it. That's exactly what I did in another project.
Thank you for taking the time to answer :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.