I want to get all bugs for my project using REST API. Let's say my project id is 15890 and the issuetype for bugs is 1.
How should my query be?
I have tried:
https://jira.domain-name.com/rest/api/2/project/15890/issueType/1
https://jira.doamin-name.com/rest/api/2/project/15890/search?jql=issueType=Bugs
https://jira.domain-name.com/rest/api/2/project/15890/search?jql=issueType=1
but it gives me status as 404.
We also have filters set up for the project as 'Bugs', can I use that too? If yes, then how?
Hello @sanisa bhushan
Please see examples here
https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/#searching-for-issues-examples
You can use project key and issueType name i.e. Bug in your JQL instead of ids.
Sample
curl \ -D- \ -u charlie:charlie \ -X GET \ -H "Content-Type: application/json" \ 'http://localhost:8080/rest/api/2/search?jql=project=QA&type=bug'
Please see here
https://community.atlassian.com/t5/Answers-Developer-Questions/How-do-I-get-all-issues-that-are-either-a-Story-OR-Bug-in-the/qaq-p/556578
For clarity you can use the POST call to avoid entering spcl characters in URL in the JQL query while doing get request
https://stackoverflow.com/questions/39974784/jira-rest-api-jql-expression-to-search-by-standard-issue-types
Thank you. That helped
It looks like you're new here. Sign in or register to get started.