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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

700 views 6 13
Read article

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