Skip to main content
Skip table of contents

Sample Formulas - Versions and Sprints

Check for a specific fix version

CODE
fixVersions.CONTAINS("v1")

If the issue contains that fixVersion, returns 1 (true). Otherwise, returns 0 (false).

Get the latest/earliest fix version

CODE
fixVersions.UMAX_BY($.releaseDate) // latest

fixVersions.UMIN_BY($.releaseDate) // earliest

Find the largest time span of an affected version

CODE
affectedVersions.MAP(IF $.releaseDate AND $.startDate: $.releaseDate - $.startDate).MAX() 

For each Affected Version, subtracts the Start Date from the Release Date, and returns the Affected Version with the largest result.

Want the shortest result? Change MAX to MIN.

Show all versions referenced in the subtree

CODE
VALUES { ARRAY(fixVersions, affectedVersions).FLATTEN().UNIQUE() }

Get all fix versions with future release dates

CODE
fixVersions.FILTER($.releaseDate AND $.releaseDate > NOW())

Show all released affected versions

CODE
affectedVersions.FILTER($.isreleased)

Show all issues released during a set period of time

CODE
DATE(“0/Jan/2021”) < fixVersion.releaseDate

   AND fixVersion.releaseDate < DATE (“31/Mar/2021”)

Check that child issues and parent issues have the same Fixversion

CODE
with parentVersion = PARENT{FixVersion}:
  if(parentVersion and !parentVersion.contains(fixVersion); "version mismatch")

Display all sprints for child items

Returns any sprints that the issues’s child items are part of.

CODE
JOIN#distinct#subtree{sprint}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.