Forums

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

Using the API to tell if a jira project is team or company managed

Admin acme-deepcred February 5, 2023

Hi, I'm fetching JIRA projects using the API in order to manage their permissions.

I see that company-managed projects manage their permissions using permission-scheme and team-managed projects do that using roles (correct me if I'm wrong?)

Using the API, I couldn't tell if a project is team or company managed.

Your help will be appreciated, thank you in advance!

1 answer

2 votes
Vikrant Yadav
Community Champion
February 5, 2023

Hi @Admin acme-deepcred Using this API you can find the Project type :- 

https://jira.atlassian.net/rest/api/3/project/{projectIdOrKey}

If "style":"next-gen" = Team-Managed Project

If "style":"classic" = Company Managed project

Thanks,

Bill Sheboy
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 5, 2023

Hi @Admin acme-deepcred 

Yes, and...to Vikrant's answer, here is the documentation for calling that function:

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-projectidorkey-get

Kind regards,
Bill

Like Vikrant Yadav likes this

Suggest an answer

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

Atlassian Community Events