Versions Compared

Key

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

Introduction

It's a condition that enables you to block/allow transitions by running your own Groovy Script.

You can use this condition to program your own custom logic if no predefined conditions suit your needs.


Element summary
Status
Status
colourGreen
titleCurrent
Version compatibility6.0.1 - Latest
SupportedYes
Introduced in version2.0.0




Note

Note that Conditions are verified every time an Issue is viewed by any user. Excessive use of computation heavy scripts might end up causing performance loss.


Condition parameters

You can choose between two methods of inputting your scripts.

  • Script template
  • Inline script

Script template - allows you to select a script from a drop-down list containing your collection of Reusable Condition Scripts.

Inline script - displays a field that allows you to input a new script from scratch. (Useful when you need to quickly add simple scripts you won't be used in other places.)


Condition verification

The transition you're verifying is enabled/disabled based on the value returned by your script.

If your script returns true, a transition is enabled and the appropriate button will appear on view/edit Issue screen.

Otherwise, Condition is not met and the transition will be blocked for the user.

The image on the right shows a simple Condition script, that disables transition for Issues without a user assigned. (It's true only when the Assignee field is NOT empty.)