Forums

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

How to get all information of issues/tickets related to a jira version by using rest API

imlimed
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!
November 1, 2018
I need to feed all information about tickets/issues linked to a jira version by using rest api.
Thanks

2 answers

1 accepted

0 votes
Answer accepted
Tom Lister
Community Champion
November 2, 2018

Hi @imlimed

you will need a command like this curl call

curl -u user:password -X GET  -H "Content-Type: application/json" http://localhost:8080/rest/api/2/search?jql=project%3DCOOL

 


you will need to formulate a JQL statement to get your required issues.

If you can, install REST API Browser to experiment with the params to the REST call

 

Tom Lister
Community Champion
November 2, 2018

To include version criteria

e.g.

project = COOL AND affectedVersion in (1.0, 2.0)

use

http://localhost:8080/rest/api/2/search?jql=project%3DCOOL%20AND%20affectedVersion%20in%20(1.0%2C%202.0)&validateQuery=true
0 votes
imlimed
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!
November 2, 2018

Hi @Tom Lister

Thank you for your quick and useful answer.

I accept it.

 

Thank you again.

Suggest an answer

Log in or Sign up to answer