Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the issues within component in a project?

kumar August 20, 2024

Hi all,

 

I am trying to get jira issues within component in a project. Unfortunately, I can not get the jira issues.

 

Let's assume, I have a project "A", within the project "A", there are multiple components such as "B", "C" and " D".

 

Now I want get all the issues using REST API?

 

I can get project and components using REST API, not the issues inside the components?

 

Can anyone help me with this please?

 

Thanks in advance

2 answers

1 vote
Mikael Sandberg
Community Champion
August 20, 2024

You can get the issues if you use the Search for issues using JQL. All you have to do is use the JQL that select the projects and the components, something like this:

project = A AND components = Something

The documentation should have everything you need.

0 votes
Joe Pitt
Community Champion
August 20, 2024

I don't use the API, but when I add the component field to the issue filter I can specify which component I want. The API should be able to do that. sample filter

change project 'name' and component 'name' to real values

project = name AND issuetype = Test AND component = name AND "Version" = 13.25.0 AND "Test Event" = "User Acceptance Testing (UAT)" ORDER BY summary DESC, key ASC

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events