Jira Automation rule to update Team field, based on user team membership

Moises
Contributor
August 14, 2024

Is there a way to retrieve the user team information in order to populate the team field automatically?

1 answer

1 vote
Bill Sheboy
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.
August 14, 2024

Hi @Moises 

No, that is not possible from an automation rule at this time.

Rules use the REST API and there is no public endpoint to get the Teams for a specific user.  These are the ones available: https://developer.atlassian.com/platform/teams/rest/v1/api-group-teams-public-api/#api-group-teams-public-api

Here is a suggestion to add that endpoint, which you may watch / vote for to see progress: https://jira.atlassian.com/browse/JRACLOUD-83728

A brittle workaround if you knew all of the possible teams is calling to get the user members of each team and then compare them to the user's accountId value.

Kind regards,
Bill

Suggest an answer

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

Atlassian Community Events