Automation for Team from assignee

Eran Roiter
Contributor
January 9, 2025

 

 

Hello everyone,

I’m working on building a complex automation in Jira, and I’d appreciate your guidance.

Here’s what I’m aiming to achieve:

  • When the Assignee of a ticket is changed, I want the automation to identify which Team the new assignee belongs to.
  • Once the team is identified, I need the automation to update a custom field (customfield_10001, representing the Team) with the correct value.

Any ideas on how to so ?

Thanks everyone ! 

1 answer

0 votes
Lucas Knorr
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.
January 9, 2025

Hi @Eran Roiter

the implementation would require several API calls:

First, all teams would have to be looked up: https://developer.atlassian.com/platform/teams/rest/v1/api-group-teams-public-api/#api-public-teams-v1-org-orgid-teams-get

and then you would have to iterate through each team to check the membership of the assignee: https://developer.atlassian.com/platform/teams/rest/v1/api-group-teams-members-public-api/#api-public-teams-v1-org-orgid-teams-teamid-members-post

Automations are unfortunately not really good when it comes to dealing with pagination (I don't know if this is necessary for you).

Do you use Jira Service Management together with Assets?
How many teams and users exist on your platform?
Can you make sure that each user is only a member of one team?

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