This very powerful 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.

Once you have defined the source field, a rule and a 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.


Configuration

Select the field that will be analyzed by the defined rules. The combination of this source field and the source value, as specified in each rule, builds the if part.

Even though this parameter is mandatory, the selection is irrelevant if you choose to base your rule on a Logical expression.



Select the field to be updated according to the rules.

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


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. 

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
PriorityText comparisonHighAssigneea.agrantIf the issue priority is High, the issue will be assigned to a.grant.







Logical expressions are not analyzing the source field. Whereas text comparison and regular expression rules are checked against the source field value, logical expressions are independent of the source field value.

Alternatively you could use the Update fields post function and set values using multiple conditional operators.




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.






Use case and examples




Tech review

Style guide



Short descriptionUpdate a single issue field according to a set of rules.
Label