Forums

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

How to find the released date of a release version using Jira API / Jira Python

Pravee95 February 17, 2023

Hi Team,

I am looking for released date of the release version using Jira API / Jira Python

I am able to get the change log / history for each issue using Jira Issue API like below

Jira - Issue API :
https://{JIRA_BASE_URL}/rest/api/2/issue/387759

{
"expand": "renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations",
"id": "387759",

"changelog" : {...}
...
}

But I am not getting the change log / history in the JIRA version API, rather I am getting the last change released version in UI like below which is not useful

Is there a way to get the changelog / history for the version (so that I will be able to get the 'releaseDate' changed from 'Unreleased' to 'Released' state)

Jira Version API :
https://{JIRA_BASE_URL}/rest/api/2/version/11400

{
"self": "https://{JIRA_BASE_URL}/rest/api/2/version/11400",
"id": "11400",
"description": "Test Release",
"name": "Test Version 1.0.0",
"archived": false,
"released": true,
"startDate": "2020-03-24",
"releaseDate": "2020-04-14",
"userStartDate": "24.03.2020",
"userReleaseDate": "14.04.2020",
"projectId": 11800
}


2 answers

0 votes
Pravee95 February 19, 2023

@Vamsi Kandala , You misunderstood my query, I am expecting the releaseDate for a specific version. 

I am getting the releaseDate & userReleaseDate as shown in the question for the version api. 

But the problem statement is - the releaseDate / userReleaseDate field is not giving the date value of 'when its changed from unreleased to released state'. 

(i.e) In UI, we have a feature to update the releaseDate manually so when the user updates the release date manually its getting updated in the releaseDate & userreleasedate field.

 

So I am expecting the 'changelog' value for the version api. If there is a way to get the 'changelog' value for the version api, using that I will be able to get the actual releaseDate value (i.e the date when its changed from unreleased to released state).

 

Thanks,
Praveena. 

0 votes
Vamsi Kandala
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.
February 17, 2023

Hi @Pravee95

Welcome to the Atlassian community!

In your REST API call for Version,

https://{JIRA_BASE_URL}/rest/api/2/version/11400

you have mentioned the Version Id as well and so it is returning the details of that specific version.

Instead, can you try using this GET call

https://{JIRA_BASE_URL}/rest/api/2/project/{projectIdOrKey}/versions

This will return all the versions of the specified project and you can parse it accordingly to get the related information.

Hope this helps.

Thanks,
Vamsi

Pravee95 February 19, 2023

@Vamsi Kandala

You misunderstood my query, I am expecting the releaseDate for a specific version. 

I am getting the releaseDate & userReleaseDate as shown in the question for the version api. 

But the problem statement is - the releaseDate / userReleaseDate field is not giving the date value of 'when its changed from unreleased to released state'. 

(i.e) In UI, we have a feature to update the releaseDate manually so when the user updates the release date manually its getting updated in the releaseDate & userreleasedate field.

 

So I am expecting the 'changelog' value for the version api. If there is a way to get the 'changelog' value for the version api, using that I will be able to get the actual releaseDate value (i.e the date when its changed from unreleased to released state).

 

Thanks,
Praveena. 

harsh.nagar
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!
June 3, 2024

Hi @Pravee95 were you able to find a solution for this ? I am also looking for changelogs value like when the release notes ticket were updated but only getting version history using this endpoint :

https://{JIRA_BASE_URL}/rest/api/2/project/{projectIdOrKey}/versions

Suggest an answer

Log in or Sign up to answer