Hi Team,
I’m using a Jira Cloud instance and trying to fetch Team members for a particular project so that I can use the data inside a Jira Automation rule.
While searching, I found the following API:
Teams Members Public API – POST
/public/teams/v1/org/{orgId}/teams/{teamId}/members
When I test this API, it returns a valid response, but when I use the same API in Jira Automation → Send web request and try to log the response (for example, {{webResponse.body}}), the log action shows an empty value.
Because of this limitation, I’m looking for a Jira-supported REST API, preferably under:
rest/api/3/...
My requirements:
Find Team members associated with a specific project
Use the API response inside a Jira Automation rule
Avoid APIs that don’t expose data properly in Automation logs
Questions:
Is there any Jira Cloud REST API (rest/api/3) available to fetch Team members?
Why does the Teams Members Public API return a response but appear empty in Automation logs?
What is the recommended or supported approach to access Team members in Automation?
Thanks in advance.
Hello (again) @Naresh Sampath
Is there any Jira Cloud REST API (rest/api/3) available to fetch Team members?
Nope
Why does the Teams Members Public API return a response but appear empty in Automation logs?
You're probably accessing the Teams REST API endpoint incorrectly
What is the recommended or supported approach to access Team members in Automation?
The recommend approach is to access the Teams REST API endpoint correctly
No offence Naresh, but you seem to be asking many Frequently Asked Questions on a wide array of topics, all of which you can easily find the answers to using a basic Google search or via any public AI such as Grok, ChatGPT etc, or just reading the existing documentation that describes how Jira works.
Perhaps try doing a little bit of research first, before asking others to expend their time and energy to find the answers for you.
Thanks in advance.
Again, my pleasure in retrospect.
Here is the list of APIs for the Teams field:
https://developer.atlassian.com/platform/teams/rest/v1/api-group-teams-public-api/
The teams API to get them all is this one:
https://api.atlassian.com/public/teams/v1/org/orgidhere/teams
# go to admin.atlassian.com https://admin.atlassian.com/o/yourorgidwillbehere/overview
To get one (run the get all teams and get the right ID for the team to use below)
https://api.atlassian.com/public/teams/v1/org/{orgId}/teams/{teamId}
If the automations isnt working, I'll bet you haven't added the header and Token.
Can you send us a screenshot of your automation?
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just to add a bit more, @Naresh Sampath I wasn't sure if you needed to encode in base64 for the automation. Which is obviously needed. Sorry for that.
1. Encode your email+token in base64 . I always use this https://www.base64encode.org/
2. Send the web request
3. IMPORTANT!! Check the box!!
4. log action {{webResponse.body}}
That should return the JSON body, and then you can check what to call from there.
Regards!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.