The modify task creates a new variable from a modified copy of an existing variable. Its primary purpose is to modify an object key’s boolean, number, or string value. modify can create a new variable from both job variables and the outgoing variables of tasks. It works with boolean, number, string, and object data types. It does not work with array data types and will not modify elements of an array within an object.
Change the boolean value of a job variable or a previous task’s outgoing variable from false to true:
The value of updated_object (outgoing variable) will be true.
Change the string value of a job variable or a previous task’s outgoing variable from "before" to "after":
The value of updated_object (outgoing variable) will be "after".
Change the boolean value of the "sync-status" field in an object from true to false:
The value of updated_object (outgoing variable):
Change the string value of the "description" field in an object:
The value of updated_object (outgoing variable):