Is there API to get the users and groups in the project setting "people".
I study the Jira cloud API (https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-projectidorkey-get). but seem only have project lead.
Hello @Lai Tat Ming, Ray
The Jira Cloud API does not directly provide an endpoint specifically for retrieving users and groups listed in the "People" section of a project's settings. While the API can retrieve details such as the project lead using the endpoint you mentioned, it doesn't offer a built-in method to get the complete list of users and groups associated with a project in the "People" section.
To work around this, you can use a combination of API calls:
/rest/api/3/project/{projectIdOrKey}/role
endpoint./rest/api/3/project/{projectIdOrKey}/role/{id}
endpoint to get the users and groups assigned to that role.This approach will give you the information you're looking for, even though it's not available through a single API endpoint
Thanks,
Shreeja J
Hi @Shreeja J ,
Yes, I try to call those APIs manually. I need to call API for each role to get the "People" section list. It can finally get the users and groups.
But it is a way to get "People" section.
Thank you for the solution.
Thanks,
Ray
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.