Forums

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

Is it possible to add Teams feature in jira automation

Hamilton Lisa July 19, 2024

I want to configure Jira automation to send email notification 10 users from one team, Is there any workaround to have the team added in the jira automation using smart values or any other ways. 

 

Please note: I am not addressing Jira custom field team but the feature teams that we see at the top along with Projects, Filters, Dashboard

1 answer

2 votes
Trudy Claspill
Community Champion
July 19, 2024

Hello @Hamilton Lisa 

Welcome to the Atlassian community.

You might be able to do something with the Send Web Request action to call the Team Members API to get the members of a team:

https://developer.atlassian.com/platform/teams/rest/v1/api-group-teams-members-public-api/#api-gateway-api-public-teams-v1-org-orgid-teams-teamid-members-post

This is a new API and does not appear to return the emails of the users. You would have to take the information that is returned (account IDs) and use another API to get the email associated with each ID.

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.
July 19, 2024

Hi @Hamilton Lisa -- Welcome to the Atlassian Community!

Yes, and...to Trudy's suggestion:

Once you have the accountId values for the team members, a second call to the REST API could pass the values and return their user data, including the email addresses.  Here is the user, bulk search one:

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-user-bulk-get

Kind regards,
Bill

Like Trudy Claspill likes this

Suggest an answer

Log in or Sign up to answer