Is there a way to retrieve the user team information in order to populate the team field automatically?
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
Thanks @Bill Sheboy im trying to solve it by using this flow:
https://community.atlassian.com/t5/Advanced-planning-questions/Can-Automation-set-the-Team-field-when-an-issue-is-assigned/qaq-p/1616145?lightbox-message-images-2636596=319038i60AD78E8824C30A7
Will confirm if works shortly
It looks like you're new here. Sign in or register to get started.