Overview
One or more trigger actions can be set for a named event in the workflow.
When the workflow trigger event occurs the trigger will check that any required conditions are met, and if met the "set-expiration"
action sets a new expiration date. The due date is a period is in the format ISO 8601.
"set-expiration"
" ❗️ indicates a mandatory parameter - a The " An existing expiration period can be removed using set-expiration
" will set an expiry period for a state."dueDate"
parameter value must be specified"triggers":
[
{"event": "on-change-state",
"conditions":
[
{"final": true}
],
"actions":
[
{"action": "set-expiration",
"dueDate": "P6M"}
]}
]
If adding the JSON trigger using workflow builder there is no need to include the opening "triggers": JSON markup notation, since it will be added by workflow builder.
dueDate"
period is set using ISO 8601 format. For example "P6M3W5D"
will be 6 months, 3 weeks and 5 days from the date of transition into the state. This will override any existing expiration periods."clear-expiration".
Related Pages
List of trigger actions
- change-state trigger action
- publish-page trigger action
- approve trigger action
- reject trigger action
- assign trigger action
- unassign trigger action
- set-expiration trigger action
- clear-expiration trigger action
- set-message trigger action
- clean-messages trigger action
- remove-restrictions trigger action
- send-email trigger action
- Users or groups within a trigger