how do I get issues in a particular component with jira API call, thanks?

 

1 answer

0 vote

Use the search REST API: https://docs.atlassian.com/jira/REST/latest/#api/2/search-search

You can use any JQL in the search, including component search.

thanks Jobin I know the high level, I was expecting details in the API call. The reason is I can have count of Issues in each component using  "GET /rest/api/2/component/{id}/relatedIssueCounts",      I need the Issues themselves.

And if you have to use the search, what are the  details of the search api call for eg. get all issues inside component named "comp"

You have to use search REST API call "GET /rest/api/2/search?jql=component%20%3D%20NameOfComponent" these query give you a Issues List for a specific component. 

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 Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

543 views 3 11
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