You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Next »

This post function can be used to update a single issue field according to a set of rules.

You can use this function to construct multiple "if → then" rules.

Configuration

Source field

Select the field that will be checked against. The combination of the source field and the source value, as specified in each rule, builds the if part.

Target field

Select the field to be updated according to the rules.

The first rule matching the given expression will update this field.

Rules

Define the rules for updating the target field and the corresponding target field values. You can choose between the following options:

OptionDescription
Text comparison

Choose this option if you want to compare the value of the specified source field with another text value. 

Once you have defined the source field value you have constructed the entire if clause.

The next step is to define, which value the target field will be updated to if the values match. This is the then part of your rule.

Logical expressionChoose this option if you want to construct a logical rule using the Logical mode. Once set up, you have to define, which value the target field will be updated to if the expression returns true.
Regular expressionEnter a valid regular expression and optionally use field codes to to specify your rule. This expression will then be evaluated against the selected source field.

Examples: 

IFTHENOutput
Source fieldModeSource field valueTarget fieldTarget field valueDescription
AssigneeText comparisona.grantsss







Source field = Assignee

Source Field value = s.grant

target field = 

Additional options
OptionDescription

Write protection

Do not overwrite the target field if it is already set.

Evaluate all rules
Do not stop rule evaluation at the first match.

Only applicable for multi-valued or temporary target fields.

Update issue immediately

The field update results in a dedicated "Issue Updated" event and issue history entry.

Conditional execution

You can optionally specify a logical expression to define the circumstances (or conditions) under which the post function should be executed.

The result of the logical expression must return a boolean value of either:

  • true → the post function will be executed
  • false → the post function will not be executed

Using the conditional operator, even complex or multi-layered conditions can be constructed.

Make sure to learn more about defining logical expressions and browse through the various examples here: Logical mode

Run as

Unable to render {include} The included page could not be found.


Use case and examples


If you still have questions, feel free to refer to our support team.