Macros

You can insert macros in your expression to evaluate more specialized values during the transition.

Macro

Type

Description

Example

[user]

String

The username of the current user.


[groups]

String

A comma-separated list of the groups the user belongs to.


[roles]

String

A comma-separated list of the project roles the user belongs to.

[roles]=/.*role_name_1.*/

[now]

Date

The current date and time.


[subtasks#field]

String

A comma-separated list of the values in the subtasks.

[subtasks#Summary]=/.*Test.*/: Checks if any subtask has a summary containing the text "Test"

[subtasks#Status]=/\0133(Done(, Done)*)?\0135/: Checks if all subtasks are in the status "Done". \0133 and \0135 are encoded "[" and "]" as you cannot use them directly in a regular expression.