Forums

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

Get all roles from a project

Adrián
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 18, 2020

Hello everybody.

I need get all roles from a project and then get all users from each roles.

Can you help me? Thank you.

Regards.

2 answers

0 votes
Mehmet A _Bloompeak_
Atlassian Partner
August 2, 2020

Hi @Adrián ,

You can accomplish it via Rest API. Pseudocode will be similar to below

roles = GET /rest/api/3/project/{projectIdOrKey}/role
for each role in roles
GET /rest/api/3/project/{projectIdOrKey}/role/{role.id}

 

Or you can try the app Project Role Tab for Jira Cloud. It displays project roles and assigned users/groups to project roles as below.

project-role-tab-2.png

0 votes
Nic Brough -Adaptavist-
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.
June 18, 2020

To "get" the list, go to Project Admin -> People. 

I suspect you are looking for something else though.  Whatever that is, you will need to explain what you mean by "get"

Adrián
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 18, 2020

Hi Nic,

I need to get roles from a jira project in java. Is it possible?

Nic Brough -Adaptavist-
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.
June 18, 2020

"in java" tells us almost nothing about what you mean by "get".

Where?  What are you running to do this?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events