How do i get field details from saved filter through REST API.

Amar January 13, 2020

Hi Folks,

Scenario 1 : 

I am trying to get all field values of issues from saved filter by using below API.

API : https://XXXX:8443/rest/api/2/filter/2400/columns

I am assuming as a result I am  getting only field names which are defined for filter(please correct if i am wrong).

Eg: {"lable":"key","value":"issuekey"} , {"lable":"Summary","value":"summary"}

Does it means all data will be present in API result ?

I need data against each issues from this filter with filter defined fields.

Above API is correct ? or shall i use Below API?

Scenario 2 : 

API : https://XXXX:8443/rest/api/2/search?jql=fixVersion%20in%20versionMatch("^TEST.*")

 This API gives me all issues with all custom fields , how do i get only specific fields as result ?

 

Regards,

Amar

1 answer

0 votes
Michael Raj July 30, 2020

Hi @Amar ,

you can do this in two steps:

1. Go to your /rest/api/2/filter/2400/ results and get value from "searchUrl" field

2. Send a new request to API using url from step no. 1


Best,

Michael

Suggest an answer

Log in or Sign up to answer