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:

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

This widget could not be displayed.
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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

128 views 2 0
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