Our new Appfire Documentation Space is now live!

Take a look here! If you have any questions please email support@appfire.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 18 Current »

Abstract

This code snippet finds the earliest unreleased version scheduled after a certain date

Logic

Access the available versions for the issue and finds the earliest unreleased version scheduled after a certain date

Snippet

def version
issue.getAvailableOptions("versions").each{
  if(!it.isReleased() && it.getReleaseDate() >= issue.get("<Specific date>") && (version?.getReleaseDate() == null || version.getReleaseDate() > it.getReleaseDate())) 
  {
    version = it
  }
}
version?.getName()

Placeholders

PlaceholderDescriptionExample
<Date field name>
Name of the field of type Dateduedate

Examples

The output of this snippet is a String representing the name of a Version which you can use in a Groovy expression, for example, to set the Fix Version/s of an issue to the earliest unreleased version scheduled after the Due date in:

  • one of the Set Field Value post-functions
  • the Create issue post-function under Set fields of new issue section

References

Filter by label

There are no items with the selected labels at this time.

  • No labels