Update Referring Items
This workflow action is the successor of the old Fields to update in Workflow Transitions.
When you select this action from the action selector, you also have to select the following:
The Relation between the tracker item, that is source/subject of the triggering event, and the items to update.
The Project where to update items (only if there are possible target Trackers in other projects, than the current one).
The Tracker where to update items.
The Status of the items to update.
From the upcoming cascading menu.
* 
Since Codebeamer release 2.0, the Statuses selector can be found within the New Action window.
Multiple statuses can be selected, therefore, reference items in the selected statuses can be updated with one Workflow Action.
In the below case, the Type field value will be updated to Functional in the reference items with New, Draft and Waiting for approval statuses:
Updating, for example, the Status field in New status, and the Priority field in Draft status within one Workflow Action is not supported. Two separate Workflow Actions need to be created to perform such actions.
There are basically two types of updating the referring items:
Updating items that is referred from the item ( outgoing references ) Example for a Requirement type of field: Parent (Requirement) -> Requirements -> New
Updating items referring to the item ( incoming references ). Example for a Requirement type of field ( which can also be read as its children ) : Requirements for Parent -> Requirements -> New
In our example from Forking sub-processes from processes (work items), we choose to update Subject (Issues) with Status In Approval in the Tracker Processes (of the current project Workflow Demo:
The only custom parameter are the Fields to update:
The field selector will show all updatable fields of the selected target tracker items in the selected status.
For each selected field, you can choose, whether to
Set or
Clear
the value of this field.
Depending on the field type, there are also additional type specific operations.
Text and Wiki fields also support to
Prepend or
Append
a value to the existing value (with an optional separator).
Numeric and Duration fields also support to
Increment or
Decrement
the existing value by the specified value.
In other words Add or Substract the specified value to/from the existing field value.
Multiple Choice fields also support to
Add
Remove
the specified value(s) to/from the existing field value(s), or to
Retain
only those existing field values that are contained in the specified (collection of) values.
In other words, removes those existing values, that are not contained in the specified (collection of) values.
The value(s) to apply can be
(a constant) Value, that you can enter/select via the appropriate value editor, or
the Content of an assignment compatible field from the tracker item, that is source/subject of the triggering event, or
the Result of evaluating an expression (on the tracker item, that is source/subject of the triggering event), that computes/calculates the value (see Computed Fields).
For example:
Set the Status of the items to update to Approved and also
Add all Comments/Attachments (of the tracker item, that is source/subject of the triggering event) to the Comments/Attachments of the items to update.
To Edit a field to update, you can:
Click the field value you want to change/edit.
Click on the small pencil behind the field value you want to change/edit.
To Remove a field to update:
Click on the x icon after the name of the field you want to remove.
Please make sure, that you have committed all open field value editors with OK, before you save the action, otherwise the uncommittededitor values will get lost.
In CB-7.9.2 and newer, you can also apply multiple value update operations on parameters and fields, that allow multiple values.
For example:
Assign the item to all Owners, except those having role Tester
Assigned to: Set to content of Owner, Remove Tester
Assign the item to all Owners, plus user bond
Assigned to: Set to content of Owner, Add bond
Remove all assignees in role Developer and newly assign users in role Tester
Assigned to: Remove Developer, Add Tester
There can be also constellations with three or more operations, e.g.
Assign the item to all Owners, that have the role Administrator, except members of group System Admin
Assigned to: Set to content of Owner, Retain Administrator, Remove System Admin
To add additional field value update operations, click on the More... button of the field update editor.
To Remove additional field value update operations:
Click on the x icon of the field value update operation, you want to remove.
Because the order of operations is significant, you can re-order additional field value update operations via drag-and-drop (in edit mode).
Editor options
This section of the workflow action configuration is available only for creating and updating referring item actions.
Open Editor: by default, the workflow action creates or updates a referring item and then updates the status of the original item. If this option is selected, the referring item is not updated or created automatically. Instead, Codebeamer shows the editor page with all field values that the user specified in the workflow action definition. If the user clicks Save on this editor page, the referring item is created or updated and the status of the original item is updated. If the user clicks Cancel on the editor, the referring item is not created or updated and the status of the original item is not updated.
Switch to Referring Item: if this option is selected, a new item page is loaded in the browser after the referring item is created or updated by the action.
Was this helpful?