Automation to add label whenever a user re-assign an issue to another user

Reb Bravo May 9, 2024

Hi Community, 

We would like to know if you have an idea on how to create an automation to add a label whenever a user re-assigns an issue to another user. 

We have tried to use different triggers but could not find a good one. The automation needs to detect if a user from a different team re-assigned a ticket to one of our team members.

We tried to use this JQL but could not meet the expected result.

project = ESD

AND assignee WAS NOT IN (membersOf("product-support"))

AND assignee CHANGED TO (membersOf("product-support"))

Can you advise what Trigger and condition should we use to get this? 

Hope you can help!

Thank you and have a nice day ahead!


1 answer

0 votes
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 9, 2024

Hi @Reb Bravo ,

you can use the Issue Assigned trigger for this. It will trigger when the issue is initially assigned as well as any subsequent updates. For this reason what I would do is add a label to the initial assignment, Such as "assigned", And then add a condition to test for the existence of that label. If it doesn't exist, then add it because it is the first time the rule triggered. If it does Exist then add a new label, such as "reassigned".

let me know if that makes sense and if you need to see an actual example.

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events