Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
bgColor#f5f5f5
titleColor#ffffff
borderWidth0
titleBGColor#000000
titleJSU for Jira Cloud
Info

This is the documentation of JSU for Jira Cloud documentation. If you are using JSU on Jira Server or on Jira Data Center, you can find the documentation here.

...

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 behaviour behavior on your post functions, enabling you Jira to let Jira perform more work harder for you.

In JSU Cloud, 's preconditions are not separate post functions, but a part of a the post function . Now you select your preconditions on the post function configuration screen.

Choose your Precondition

Image Removed

Image Removed

Click the "Add Precondition" button and insert the precondition 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.Image Added


Choose your precondition

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

The following preconditions are available:

Child pages (Children Display)

...

Combine

...

multiple preconditions

Image Removed

You can insert multiple precondition and combine them. For compatibility reasons, they are evaluated sequentially like they are on Jira Serverpreconditions and combine them using the following operators:

  • AND: Previous result and the current result must be true

  • OR: Either the previous result or current result must be true, or both

  • AND NOT: The previous result must be true, and the current result must be false

  • OR NOT: Either the previous result must be true or the current result must be false, or both

They are evaluated sequentially, combining the result of the previous precondition with the result from the current one. Parentheses to define precedence are not supported.

You can rearrange the precondition by dragging the line using the handle on the left.

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 Side

...

The post function setting

Your post function is always aware of the preconditions you configured. However, 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 can do this by creating an Update Any Issue Field post function and setting the precondition as described:

  • IF Original Estimate >= 2d

  • OR Story Points > 8

  • AND Issue Type = Story

In other words, if you have a time estimate greater than or equal to two days or the number of story points exceeds 8 and the issue is a Story, then you want to execute the post function.

In the post function, you update the issue by adding a new comment. After you save, the overview should appear similar to the following:

...

See also Preconditions for Post Functions for more use cases.