My requirement is:
Unfortunately I am not able find any REST APIs for both of these operations !
Can you please help me. Thanks
Hi,
You need to use this API
rest/api/2/project/{projectIdOrKey}/role
you'll get all the role in your project then use this API to get all users that belong to this role
/rest/api/2/project/{projectIdOrKey}/role/{id}
<a href="https://docs.atlassian.com/software/jira/docs/api/REST/9.3.2/#api/2/project/%7BprojectIdOrKey%7D/role" target="_blank" rel="nofollow noopener noreferrer">https://docs.atlassian.com/software/jira/docs/api/REST/9.3.2/#api/2/project/{projectIdOrKey}/role</a>
@Mohamed Benziane : Yes it worked ! thank you so much for your suggestion
May be Atlassian documentation should be updated for this Get Project Role REST API like "this will return the assigned list of users".
They need to have a straightforward API which would return the user with associated project roles.
I have similar question on how to extract list of user and list of their respective roles in each of projects. Can i do without using API? Thanks
In jira cloud this not possible without API. In DC may be you can use the database to get the data you need.
Thanks for responding! I'm referring Jira web (not Jira cloud). Please provide steps if possible. Appreaciate the help. Thanks a lots
it is also possible to use the same endpoint in v3, which follows the same structure:https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles/#api-rest-api-3-project-projectidorkey-role-get
This works to retrieve the list of users under a specific project. But it doesn't show their roles.
https://{YourCompanyName}.atlassian.net/rest/api/3/user/assignable/search?project={JiraIdProject OR JiraProjectKey}
It looks like you're new here. Sign in or register to get started.