searching for issues with a field value in Rest API

suresh LakshmiNarayanan June 10, 2021

Hi, I am using Rest API for querying Jira issues.I want to search for the issues in my project, filtering by field values.I have a field called fixversions  and I want to query for the issues using  fixVersions.id

The structure of fixVersions for GetIssue Response  in RestAPI is ,

 

"fields": {  

              "summary": 

               "fixVersions":

 [ {          "self":  

                    "id":       

               "description":    

                    "name":          

              } ],

1 answer

1 accepted

1 vote
Answer accepted
Niranjan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 10, 2021

Hi @suresh LakshmiNarayanan ,

Could you try /rest/api/2/search?jql=project%3DABC%20and%20fixVersion%20%3D%20XXX

ABC -Project Key

XXX- Fix version name

suresh LakshmiNarayanan June 10, 2021

Thanks a lot  Niranjan.. 

the below Query worked.

/rest/api/2/search?jql=project+%3D+ABC+AND+fixVersion+%3D+XXX

Suggest an answer

Log in or Sign up to answer