Hi all,
Is there a way that I can search for all users with a particular role type on my Jira cloud instance and export that list?
My use case is that I'd like to add all the Project Administrators from a list of Jira projects to an MS Teams team. I can manually inspect the membership and roles of each project one at a time but I'm thinking that there must be an easier (faster!) way to do this?
Hello @Adam Taylor ,
There is no API that can fetch this data, nor there is JQL query variable to use this.
You can refer to this page: https://community.atlassian.com/t5/Jira-Software-questions/JIRA-API-to-get-roles-by-User/qaq-p/2217790
BR,
Nikola
Try this API call:
https://<yourjirainstance>/rest/api/2/project/<projectID>/role/<roleID>
This should get you the "actors" in a specific role.
Method: GET
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Adam Taylor
I think you can achieve the list by scripting but exporting won't be possible. Having said that you can export users in particular roles and project via script runner.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Adam Taylor
You can get this information per project but not overall.
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.