Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create a new custom field, choosing "Calculated Number Field" for its type.
  2. During step 2, in the Description field, include the calculation formula using the syntax described below.
  3. Re-index your data, as JIRA will kindly suggest you to.

...

Transition Date/Time Field

  1. Create a new custom field, choosing "Transition Date/Time Field" for its type.
  2. During step 2, in the Description field, include the transition ID (recommended) or name as described below.
  3. Re-index your data, as JIRA will kindly suggest you to.
Indicating the transition

...

Formula syntax

The formula should be included in the field description inside an html comment (so that it remains invisible when showing the field description), preceded by the following keyword: @TransitionId@@Formula: or @TransitionName: (note the colon at the end). For example:

Panel
Span
stylefont-family:Courier

<!-- @TransitionId: transition ID ->

or

Panel
Span
stylefont-family:Courier

<!-- @TransitionName: transition name ->

@@Formula: formula goes here ->

You can naturally include the real description of the custom field as well. For example:

Panel

This field represents the date and time of the Resolution of this issuenumber of Affected Versions.
<!- @TransitionId: 5 - @@Formula: issue.get("versions").size() -->

The formula itself is a Java-style expression that can reference any issue field value, include arithmetic operators as well as any other Java operator, and Java method calls (such as the .size() example above). Access to issue field values is achieved by the following syntax:

...

Code Block
<!-- @@Formula: (issue.get("customfield_10114") != null ? issue.get("customfield_10114") : 0) + (issue.get("customfield_10150") != null ? issue.get("customfield_10150") : 0) -->

Anchor
transitiondatefield
transitiondatefield

Transition Date/Time Field

  1. Create a new custom field, choosing "Transition Date/Time Field" for its type.
  2. During step 2, in the Description field, include the transition ID (recommended) or name as described below.
  3. Re-index your data, as JIRA will kindly suggest you to.
Indicating the transition

The transition should be indicated in the field description inside an html comment (so that it remains invisible when showing the field description), preceded by the following keyword: @TransitionId: or @TransitionName: (note the colon at the end). For example:

Panel
Span
stylefont-family:Courier

<!-- @TransitionId: transition ID ->

or

Panel
Span
stylefont-family:Courier

<!-- @TransitionName: transition name ->

You can naturally include the real description of the custom field as well. For example:

Panel

This field represents the date and time of the Resolution of this issue.
<!-- @TransitionId: 5 -->

Anchor
transitioncallerfield
transitioncallerfield

Transition Caller Field

  1. Create a new custom field, choosing "Transition Caller Field" for its type.
  2. During step 2, in the Description field, include the transition ID (recommended) or name as described below.
  3. Re-index your data, as JIRA will kindly suggest you to.
Indicating the transition

The transition should be indicated in the field description inside an html comment (so that it remains invisible when showing the field description), preceded by the following keyword: @TransitionId: or @TransitionName: (note the colon at the end). For example:

Panel
Span
stylefont-family:Courier

<!-- @TransitionId: transition ID ->

or

Panel
Span
stylefont-family:Courier

<!-- @TransitionName: transition name ->

You can naturally include the real description of the custom field as well. For example:

Panel

This field represents the Resolver of this issue.
<!-- @TransitionId: 5 -->

Anchor
currentUserPropertyAsList
currentUserPropertyAsList

...