How to get the startDate of a release when not on Jira Cloud

Leyla Kinaze
Contributor
January 9, 2025

Hi, 
I'm trying to create an automation to set the target start/end date based on the fixversion of a ticket to populate automatically the plan for our project.

I'm able to get the Target End date by fixing it to the fixversion.releaseDate
But I'm not able to get the start date of the release: fixversion.startDate gives me an error and when I look at the fixVersion in the JSON representation of my ticket I only see those fields:

- self:

- id

- description

- name

- archived

- released

- releaseDate

Does this means that I can not get the startDate of the fixversion eventhough it is set?

Thank you in advance for your help.

2 answers

1 accepted

0 votes
Answer accepted
Rick Olson
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.
January 9, 2025

These work for me when I'm reading the values for a story and applying them to another story, like when I split an issue.

{{triggerissue.fixVersions.startDate}}

{{triggerissue.fixVersions.releaseDate}}

{{triggerissue.fixVersions.description}}

Leyla Kinaze
Contributor
January 9, 2025

Thanks Rick!  This works perfectly!!! :-)

 

0 votes
Bill Sheboy
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.
January 9, 2025

Hi @Leyla Kinaze 

You appear to be using the incorrect smart value for Fix Versions, as it is plural (and provides a list of the versions for the issue).  Please try this:

{{issue.fixVersions.startDate}}

 

If that does not work, the cause for Jira Data Center could be the attribute is not supported by the issue REST API.

According to the documentation, startDate is not available as a smart value: https://confluence.atlassian.com/automation/jira-smart-values-issues-993924860.html#Jirasmartvaluesissues-issue.fixVersionsissue.fixVersions

A possible workaround is using the Send Web Request action to call the REST API endpoint to get the project versions: https://docs.atlassian.com/software/jira/docs/api/REST/9.13.0/#api/2/project-getProjectVersions

 

Kind regards,
Bill

Leyla Kinaze
Contributor
January 9, 2025

Hi Bill, 
I made a typo in the description of the problem.  I was using fixversions, but it did not work.

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events