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.
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.
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
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.
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.
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.
Team -
Assigne - A .. check the team Assignee A belong to in the team .
Autofill the Team filed - name of the team.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.