Forums

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

I need to check whether any release is created with end date to it in jira project using rest api.

Yasashree May 22, 2021

Is there any jql query or filter to apply on api to get release that has end date between 3 months.

The current api that i'm using to pull release details is.

https://projects.cdk.com/rest/api/2/project/{project_key}/versions

1 answer

0 votes
Sunny Ape
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.
May 22, 2021

Hello @Yasashree 

The Get project versions paginated endpoint accepts JQL queries, but it only accepts two values to query on... name or description, nothing else, as per the documentation:

query

string

Filter the results using a literal string. Versions with matching name or description are returned (case insensitive).

If you try to query on startDate, endDate or any of the other fields, that part of the JQL is ignored.

So, you will have to extract the start and end dates from the data set returned by the REST API and do the filtering on those dates yourself within your script or program.

Suggest an answer

Log in or Sign up to answer