Versions Compared

Key

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

This is the JSU for Jira Cloud documentation. If you are using JSU on Jira Server or on Jira Data Center, see our JSU Server/Data Center documentation.

On this page:

Table of Contents
minLevel2
maxLevel3
outlinefalse
styledefault
typelist
printabletrue

Configuration of preconditions

Preconditions allow you to execute a post function under certain circumstances only; essentially they are conditions for the post function component of your rule. This allows lets you to create complex behavior on your post functions, enabling Jira to work harder for you.

JSU's preconditions are a part of the post function section in Jira's workflow configuration. In the example below, a precondition is added to the ‘Clear Field Value’ post function.

Diagram showing the resulting action for a post function if the preconditions are met or unmet.


Choose your precondition

In the post function configuration page, select Add Precondition then select Add for the precondition that you want to evaluate.

...

Child pages (Children Display)

...

Combine multiple preconditions

You can insert multiple preconditions and combine them using the following operators:

...

You can also disable the precondition by unchecking the enabled flag next to the delete button. This will leave the precondition in your configuration, but it will be ignored.

...

The post function setting

Your post function is always aware of the preconditions you configured, however, you still need to select whether you want the precondition to be true or false for the function to be executed.

...

Example

Say you want to tell the user to break up a large story into smaller stories. You could can do this by creating an Update Any Issue Field post function and setting the precondition as described:

...