Forums

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

can you please tell that how to get api for all project name and their key?

Guest February 15, 2018

can you please tell that how to get api for all project name and their key?

1 answer

0 votes
Alexey Matveev
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 15, 2018

Do you mean Java Api or Rest Api?

If java api then you shoud use

List<Project> projectList = ComponentAccessor.getProjectManager().getProjectObjects()

for (Project project : projectList) {

  project.getKey()

}

 If Rest Api then you can find more info here:

https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-project-get

Guest February 22, 2018

thank you 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events