Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to create automation rule: If Assignee= X, Team = Y

Maria Jose Villota March 7, 2024

User story: As a Jira user, I want the ability to set up an automation rule that changes the Team field value when the assignee changes, so that I may save time. 

If assignee = X, Team = Y

Context: I have users divided into different Teams and if the assignee of an issue changes, I want Jira to automatically change the Team field as well. For example, Sally is on Team A and if she is the issue's assignee, the Team field value should be Team A. I looked at the Automation options and don't see a way to do this, does anyone know how to do this? 

2 answers

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 7, 2024

Hi @Maria Jose Villota -- Welcome to the Atlassian Community!

Is this for a "team" in advanced roadmaps, or something else?

At this time, there is no REST API function to get the team for a specific user for advanced roadmap.  Here is the suggestion to add that: https://jira.atlassian.com/browse/JSWCLOUD-20360

And so I believe the rule you describe could only be implemented if you hard-coded all of the user and team relationships in the rule.  With only a few dozen users that might not be possible in a rule.  Using a lookup table, up to 300 users could be handled.  Regardless, this would be a difficult rule to maintain.

Kind regards,
Bill

0 votes
Joseph Chung Yin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 7, 2024

@Maria Jose Villota 

Welcome to the community.  You can setup automation rule using Automation for Jira in your env where when the Team field changes value then update the assignee of the issue.

The triggering event will be "Field value changed", then add in your condition criteria, and finally performs the edit issue action automatically.

Here are the references on Automation for JIra -

https://support.atlassian.com/cloud-automation/docs/jira-cloud-automation/  (Cloud env)

https://confluence.atlassian.com/automation (Data Center on-prems env)

https://www.atlassian.com/software/jira/automation-template-library#/rule-list?systemLabelId=all&page=1&pageSize=20&sortKey=name&sortOrder=ASC  (sample templates of automation rules)

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

Maria Jose Villota March 8, 2024

@Joseph Chung Yin Thanks for the warm welcome and for your response!

The automation I'm trying to implement is "when the Assignee value changes, then update the Team field". Not the other way around. It seems like "Team" is not a supported field under Automation so I guess there's no solution to this use case just yet. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events