Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Query to get component of a project

guess85 February 21, 2012

Hi all. At the moment I use soap method to get the list of components of all projects. But it is a bit slow, and become more slower if I have many projects.

Can I perform a JQL query, and a REST post, to get the list of all components of all projects?

I didn't find any help on this page http://confluence.atlassian.com/display/JIRA/Advanced+Searching

Thanks to all.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Erik Dasque February 21, 2012

I don't think it would be JQL since that's specific to finding issues.

Calling the REST URL: https://yourJIRAurl/rest/api/2/project/PROJECTKEY/components

will get you the list of components in JSON for that project (PROJECTKEY). From what I can tell there is no REST call to get the list of projects so you'll have to know your project keys.

REST has a lower overhead than SOAP so it might be a tad faster.

guess85 February 21, 2012

Thank you, I will use this API.

TAGS
AUG Leaders

Atlassian Community Events