Forums

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

Curl for jira cards with a specific status?

VamseeK
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 23, 2019

Can you please suggest a way to curl for Jira cards with a specific status?

1 answer

0 votes
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 24, 2019

Hello Vamsee and welcome to the Community!

Using cURL to get data from Jira is straight forward. If you want to get an issue(s) within a set status you just have to apply some JQL to your URL. Here is an example:

Request data from Jira
Project is STUFF
Status of (New, Doing, Done)

https://Jira.Something.Com/rest/api/2/search?jql=project=STUFF+AND+(status=New+OR+status=Doing+OR+status=Done)

The full cURL syntax will look like this

curl -u user:token -X GET https://Jira.Something.Com/rest/api/2/search?jql=project=STUFF+AND+(status=New+OR+status=Doing+OR+status=Done)

Here is further information on Jira JQL, Advanced searching.

I hope this information proves helpful and you're able to get to the data you need.

Regards,
Stephen Sifers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events