Forums

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

Does the Team field populate when I assign the issue?

Aron Kuch
Contributor
October 31, 2023

I want to use the Team field to create boards of all issues assigned to their members. It could be that the Team field would auto-populate when you assign someone to that issue, but my testing indicates that this not how Atlassian built it.
If I have to build it as an automation (and have it count towards my action triggers), is there an easier way than When assigned, If User in (User1, User2, User3) edit issue field Team to TeamA, Else If User in (User4, User5, User6, User 7) edit issue field Team to TeamB, Else If...

1 answer

1 accepted

1 vote
Answer accepted
Michel Neeser
Community Champion
October 31, 2023

Hi @Aron Kuch

As far as I know, there is no simpler solution because you can't check for users in a team with JQL or with another automation rule check.

What you could do though is creating additional user groups to make the automation rule more maintainable, as described here. This way, you don't have to mention every single user in the automation rule.

Hope this helps.

Aron Kuch
Contributor
October 31, 2023

At best that seems like a work around because user groups seems like a concept for security privileges, etc. specifically because the page text says:
Use groups to give multiple users in your organization the same permissions, restrictions, and product access.

It's weird, but probably better than a big if statement that needs to be updated every time we add a new employee.

Michel Neeser
Community Champion
October 31, 2023

@Aron KuchYes, it is a workaround for sure, but I don't really see a disadvantage if you use the user groups for this purpose. The number of user groups a user can be assigned to is not limited.

Aron Kuch
Contributor
November 1, 2023

Below is the intro to my implemented solution.
I am using JQL because I think membersOf is only available as JQL. I'll have the first If: and 7 Else-if: to cover the 8 teams.
Given that the group name is the same as the value editing in the field, I wish I could do something like edit BMIC Teams to assignee.group but that's not an option I've found.

Thank you for the help.

Jira Automation Assigned Team.png

Michel Neeser
Community Champion
November 2, 2023

@Aron Kuch

Given that the group name is the same as the value editing in the field, I wish I could do something like edit BMIC Teams to assignee.group but that's not an option I've found.

I haven't tried, but maybe you could use a variable for this (automation action "Create variable").

Like Aron Kuch likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events