Hi, I'm trying to create an automation in JIRA that accomplishes the following:
My current configuration looks like this:
I have tried other configurations as well, such as
Any guidance would be appreciated, thank you!
Hi @Amanda Wong -- Welcome to the Atlassian Community!
Why are you using the generic Issue Updated trigger?
When using the trigger Field Value Changed specifically for the Labels field, the various {{fieldChange}} smart values may be used to detect what you ask: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--fieldChange--
For example:
additions to field: {{addedfieldChange.values}}
deletions from field: {{deletedfieldChange.values}}
Please note well:
Those smart values could be used with the ADDREMOVE option to edit the field, although I would recommend instead to use JSON to make the updates by iterating over the values found: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Labels
And as @Sahir Maharaj noted, synching field values between parent / child issues without full replacement can be challenging to get correct due to edge cases. For example, what should happen when:
Kind regards,
Bill
Hello @Amanda Wong
Based on my experience, syncing labels between parent and child issues using Jira automation can be tricky, especially for cascading changes. To handle label removals, try modifying your rule to remove only labels present on the parent issue from the child.
You might need to use a condition or additional logic in the rule to ensure only specific labels are removed while leaving others untouched. Adding the "Copy from parent issue" operation could also help refine this behavior.
For cascading changes to children of children, you can use a branch rule that targets "All descendant issues."
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.