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
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'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For clarity you can use the POST call to avoid entering spcl characters in URL in the JQL query while doing get request
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you. That helped :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.