Script to check the Release Date of Versions

Hello everybody,

I need a script example to check the Release Date of versions. I have to check if the release date is empty or is the release date before or after a defined data. I am not good in scripting and need help for this because I don't know how to check this with groovy script.

thank you for help

Best Regards

Elke

4 answers

1 accepted

This widget could not be displayed.

Yep, from the context of an issue:

issue.fixVersions*.releaseDate

check that returned list for nulls or dates before date X.

other question, how can I find out via script if a version is released or not?

BR Elke

Henning Tietgens Community Champion Feb 18, 2013

You could use

srcVersion.isReleased()

Henning

Henning Tietgens Community Champion Feb 18, 2013

And for more information about a JIRA version you could check http://docs.atlassian.com/jira/latest/com/atlassian/jira/project/version/Version.html :-)

Henning

How to get current issue version startdate?

This widget could not be displayed.
Henning Tietgens Community Champion Feb 18, 2013

You could use this as a template to access the release dates of all versions of one project from the Script Runner console.

sourceProjectKey = 'XXX'
srcProjectObj = componentManager.projectManager.getProjectObjByKey(sourceProjectKey) 
srcProjectObj.versions?.each { srcVersion ->
	if (!srcVersion.releaseDate) {
		// Release Date is empty
	}
}

Henning

This widget could not be displayed.

Further requirement to create a scripted field to return the release date of the fix version of the issue.

This is required to allow new common field, across all projects, to filter by release date.

Thanks..

This widget could not be displayed.

Hi!

I have a custom field VersionPicker for a single Version.

How is the code to check the release date of the version selected in VersionPicker? (in a script)?

I tried something similar to the above code (issue.fixVersions*.releaseDate) but it does not work

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

165 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you