Update Jira Team field according to user's group

Yaniv September 30, 2024

Using Jira cloud, we want to update the Jira Team field according to the reporter's group.

Assuming a user can belong to 1 group only, is there any way to do it by using automation or a script?

1 answer

0 votes
Benjamin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 30, 2024

HI @Yaniv ,

 

A user can belong to multiple groups. You probably can call out by API what groups a user belongs to but what exactly would you do with that info?

 

Yaniv September 30, 2024

Hi @Benjamin 

Assuming a user can belongs to 1 group only, I'd like to automatically assign a value into the Team field according the group the reporter belongs to.

Benjamin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 1, 2024

Hi @Yaniv ,

 

It would be the same process if it was multiple or one group. You would need to break it down into 3 parts when automating through scripts and API.

 

  • Call an API to pull the user in the reporter.
  • use the user found in the reporter field, to get the group info.
  • Then parse the group info, and set your other field accordingly.

 

 

 

Yaniv October 9, 2024

Thanks, will try

 

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