Update Properties Node
Updated
The Update Properties node enables you to set or modify the value of a variable within a workflow. You can assign either a static value or a dynamic value generated by executing a script.
For more complex configurations and workflow logic, the Update Properties node supports Groovy scripting through a custom code block. Groovy scripts can be used to derive dynamic values from custom fields, existing variables, and other workflow data.
Supported Fields
The Update Properties node includes the following fields and options:
Name: Use the Name field to provide a unique and descriptive name for the node. A meaningful name makes it easier to identify and manage the node within your workflow.
Select/Create Fields to Update Their Value: Use this field to specify the variable whose value you want to create or update. You can select the appropriate operator based on how you want to modify the variable. The available operators are:
Set: Assigns a specific value to a local variable. The value can be static or dynamically generated.
Increment: Increases the value of a numeric variable by the specified amount.
Decrement: Decreases the value of a numeric variable by the specified amount.
These operators allow you to manage variable values efficiently based on your workflow requirements.

Writing Groovy Custom Code: The Update Properties node allows you to use Groovy to implement custom logic and generate dynamic values. The Groovy library can be used as a reference when writing your scripts. To add custom Groovy code:
Open the Update Properties node.
Select the variable for which you want to provide a dynamic value.
Click the ${X} icon to open the available options.
Click Enter Custom Code.

A custom code editor will open.
Enter your Groovy script in the editor.
Click Execute Code to run and test the code.

The custom code can use available workflow variables and custom fields to calculate or derive the value required by the workflow. Executing Custom Code: After entering your Groovy script, you can use Execute Code to verify that the code runs as expected. This makes it easier to test your logic and identify issues before using the value in the workflow.