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.
Community moderators have prevented the ability to post new answers.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.