You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I need to take an export of JIRA users from a particular project . How can I do it? It should be an export of all users in that JIRA project with their respective roles. Kindly advise.
Hi @Priyanka and welcome to the community!
I would suggest a solution like below:
Fetch all the available roles for a project using the GET /rest/api/3/project/{projectIdOrKey}/role . Then for each of the project roles that will be fetched in the previous request, call the below request to get the list of users
GET /rest/api/3/project/{projectIdOrKey}/role/{id}
Let me know if that helps!
Alex
There's a pretty solid REST interface for getting role members https://docs.atlassian.com/software/jira/docs/api/REST/8.22.3/#project-getProject
When you open the example response, in the json, it contains "roles" - and this will contain a hyperlink to get users for each of your project roles. From there it's just about data collection.
So, what you can get out of box is users per role, but not quite the "roles for user". If you need specifically the latter, then that'd be an extra step to build it, based on the above data.
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.