Multi Valued fields are fields that allow you to select more than one item:
You can use operators +
and -
to add or remove lone or set of items from Multi Valued fields.
Adding/Removing values from Current issue or Parent issue
+
and -
, and copy it into a multi-valued field of current issue or parent issue (in the case of sub-tasks).Adding/Removing values from other issues
Adding and removing values in a single post-function
A string like + item_1, item_2, item_3, - item_4, item_5
will add items 1, 2, 3 and remove items 4, 5. You can also inject field codes in the string, and they will be replaced by its corresponding values when parsed by post-function at run time.
Since we are setting a field in current issue, we can do it in a single step using post-function Copy parsed text to a field with the following configuration:
Note that:
Once configured, the transition looks like this:
We will explain 2 different configurations to implement this same behavior.
Use post-function Read fields from linked issues or sub-tasks to read Components from sub-tasks and write it into Ephemeral string 1 virtual field:
Use post-function Copy parsed text to a field to compose string with operator +
and Components of sub-tasks read in previous step and write it into main issue's field Components:
Note that:
Once configured, the transition looks like this:
Using one single post-function, use post-function Copy parsed text to a field with the following configuration:
Text to be parsed: "+ " + toString(fieldValue(%{00094}, subtasks()))
Once configured, the transition looks like this:
We will explain 2 different configurations to implement this same behavior:
Use post-function Read fields from linked issues or sub-tasks to read field Reporter from linked issues and write it into Ephemeral string 1:
Use post-function Copy parsed text to a field to compose string with operator -
and Reporter previously read in step 1 and write it into Multi User field Team:
Text to be parsed is: - %{00061}
Note that:
Once configured, the transition looks like this:
Using one single post-function,use post-function Copy parsed text to a field with the following configuration:
Text to be parsed: "- " + toString(fieldValue(%{00006}, linkedIssues("is blocked by, is cloned by")))
Once configured, the transition looks like this: