So far I have made this query to get all bugs with the JIRA REST API:
<url>/rest/api/2/search?jql=issueType=Bug
It works well, but how would I search for Bugs AND Stories? Any help would be appreciated. I've been stuck on this for a while...
Community moderators have prevented the ability to post new answers.
Either of these should work –
Ultimately we are leveraging the built-in JQL searching function, which returns issues. This is great because we get a lot of abilities from a fleshed out search language.
The original question was asking how to search for multiple values on a single field. The answer is to use the IN [in operator] operator vs the = [equals operator] operator.
https://confluence.atlassian.com/jirasoftwarecloud/advanced-searching-764478330.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<url>/rest/api/2/search?jql=issuetype%20in%20(Bug%2C%20Story)
curl -u <user>:<pass> <url>/rest/api/2/search?jql=issuetype%20in%20(Bug%2C%20Story)
This will limit the maximum of issues returned.
To get up to 1000 issues use this example.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had to give the check mark to the first person but your answer was also very helpful. Thank you!
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.