Forums

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

A single API to fetch project details with all roles

Mrinalini Pal
Contributor
February 25, 2022

I need to fetch details for a specific project role along with the project details.

I have come across separate APIs for this : 

However, if I execute the GET PROJECT ROLE API only, I am getting a response that does not have project information as shown in the documentation. The response I am getting is : 

{
"self": "https://my-domain.atlassian.net/rest/api/3/project/10001/role/10006",
"name": "Developers",
"id": 10006,
"description": "A project role that represents developers in a project",
"actors": []
}

 

Please suggest a single API that will provide me role details as well as project name (at least) .

Thank you

1 answer

1 accepted

0 votes
Answer accepted
Niranjan
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.
February 25, 2022

Hi @Mrinalini Pal ,

The call /rest/api/2/project/{ProjectKey}?fields=role will give you the project name and the role information. Let me know if that works. Thanks

Mrinalini Pal
Contributor
February 25, 2022

@Niranjan Works like a charm ! Thank you so much

Suggest an answer

Log in or Sign up to answer