Forums

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

Automation to set the Team field to own team

Steffen Goldenstein (Admin)
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 22, 2024

Hello everyone,

is there any way to make an automation that sets the team field to the team the creator of the ticket is in? For me this is quite obvious, but I can't find a solution for it.

We have many teams and having an automation for every team is a pain.

I found this thread where one answer does something similar, but can't figure out how to do it with my case:
Solved: Can Automation set the Team field when an issue is... (atlassian.com)

Any idea would be really appreciated!

1 answer

0 votes
Ste Wright
Community Champion
March 22, 2024

Hi @Steffen Goldenstein (Admin) 

That other answer doesn't look right to me.

As far as I know, this isn't possible natively.

How many users are we talking here? And how many team variations?

Ste

Steffen Goldenstein (Admin)
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 22, 2024

I hoped there was something possible with SmartValues or these API calls.

We have 14 Teams with > 120 users.

Ste Wright
Community Champion
March 22, 2024

Hi @Steffen Goldenstein (Admin) 

There is an API for Team, but I don't see a method to compare members through it.

You could use Groups instead (or duplicate Teams as Groups), and then compare Group members via API?

---

The other issue I could think of was what if a user is in multiple Teams? 

This presents the other option - hard-code it into an Automation rule using a Lookup Table - eg.

  • Trigger on issue assignment
  • Check assignee is not empty
  • Create a Lookup Table, with each Assignee's user ID (key), with a Team ID (value)
  • Set the Team based on the Lookup Table

Ste

Suggest an answer

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

Atlassian Community Events