Obtaining a list of Components in a Project (version 7)

The company I work for is upgrading JIRA to v7.3.6 from v6.3.12 and I'm having trouble finding answers to some questions. I am just a user, not an administrator. Here is one of the questions:

Currently I can obtain a list of components in a project and their process ID numbers by using this API call:
https://JIRA-URL/rest/api/2/issue/createmeta?projectKeys=DSCUST&expand=projects.issuetypes.fields&issuetypeName=Story

However, when I replace the version 6 JIRA-URL with the one for version 7, I get an empty json set: {"expand":"projects","projects":[]}

Research suggested that https://JIRA-URL/rest/api/2/issue/createmeta?findAllForProject(DSCUST) would provide what I needed. Although I get a long block of json code, Components that exist in the project are not listed.

The Project (DSCUST) exists and some Components have been defined.

Could someone who knows more about this than I do (and that will be just about anybody) toss me a clue?

1 answer

1 accepted

1 vote
Tarun Sapra Community Champion Jun 20, 2017

It's easy and possible using REST APIs to get the list of project components.

Latest release -- https://docs.atlassian.com/jira/REST/server/#api/2/project-getProjectComponents

REST end point - GET /rest/api/2/project/{projectIdOrKey}/components

 

Tarun Sapra Community Champion Jun 20, 2017

and yes it's supported by JIRA 7.x versions

Thanks again, Tarun. I now have the needed information.

Tarun Sapra Community Champion Jun 20, 2017

Hello Bill, If you are satisfied with the answers, could you please accept them. Thanks.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,237 views 14 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot