Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,551,722
Community Members
 
Community Events
184
Community Groups

I need to take an export of JIRA users from a particular project . How can I do it?

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.

 

2 answers

0 votes
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jun 17, 2022 • edited

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

0 votes
Radek Dostál
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.
Jun 17, 2022

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events