Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

On change/update of Assignee in a issue, the Team filed should be autofilled as Assignee belong to.

Ram Sharma May 19, 2025

User - A Team - Fly
User -B Team - Samsung

on Assignment of a issue type to User A, the Team Field should be auto field/Auto pick the team - Fly.

similarly in case of change of assignee. 

How we can achieve this. 


3 answers

0 votes
Rick Westbrock
Contributor
May 27, 2025

The suggestions to hard-code "if Assignee = User A" are not scalable if there are more than just a couple of users. You could use a lookup table in the rule instead of hard-coding conditions however even then the rule would have to be updated every time a new user is added to the project. And to Trudy's point a user can belong to multiple Teams so an assumption would have to be made for each user that in a specific project their Team would always be the same.

0 votes
Tuncay Senturk _Snapbytes_
Community Champion
May 19, 2025

Hi @Ram Sharma 

I am unsure if I have it correct; however, you can do it with automation.

 

- Create a rule with the "Issue Assigned" trigger.

- Then add a condition if/else block

-- if  (assignee = User A), set team = Fly

-- else if (assignee = User B), set team = Samsung

 

Ram Sharma May 19, 2025

@Tuncay Senturk _Snapbytes_   
It should pick the team name from Team.  

Trudy Claspill
Community Champion
May 19, 2025

@Ram Sharma 

A user can belong to multiple Teams. How would you expect Jira to figure out which one to choose?

Also, there is no function provided already as part of Automation to determine the Teams of which a user is a member. A Jira REST API call would have to be made to get that information.

 

0 votes
Gor Greyan
Contributor
May 19, 2025

Hi @Ram Sharma ,
Please provide the type for the Team field, on which it should be autofilled.

Ram Sharma May 19, 2025

Team - 

Assigne - A ..  check the team  Assignee A belong to in the team .

Autofill the Team filed - name of the team.

Gor Greyan
Contributor
May 19, 2025

Dear @Ram Sharma

If it the Team field is Select List field, you can input Fly and Samsung values into it, then create an automation.

Trigger - When issue is assigned to a user

If/Else block - Condition, if Assignee is user A

Action - Edit Issue field Team and select option Fly.

 

Else block - Condition, if Assignee is user B.

Action- Edit issue field Name and select option Samsung.

 

Let me know, if there is any question.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events