Community
Thumb_icon

Execute Linked Work Items Action Workflow Function

 This Work Item workflow function lets you configure the workflow actions of linked Work Items that shall be executed on a status change.

Description

Polarion offers a built-in Work Item workflow function LinkedWorkItemsStatusChange that can change the status of linked Work Items. However, this workflow function directly changes the Work Item status and does not perform the workflow actions. Consequently, the configured workflow conditions are not checked and workflow functions are not executed.

In contrast to that, the ExecuteLinkedWorkItemsAction Work Item workflow function lets you configure the workflow actions of linked Work Items that shall be executed on a status change.

 

The parameters are:

Parameter Description
action.id The ID of the action that shall be performed for the status change. If the action is generally available from the origin to the target status but blocked due to some conditions, a UserFriendlyException is thrown and the action is canceled.
link.roles.direct Comma-separated list of outgoing link roles to check. Either direct or back needs to be specified.
link.roles.back Comma-separated list of incoming link roles to check. Either direct or back needs to be specified.
origin.states Comma-separated list of origin states of the linked Work Items for which the action shall be performed.
origin.negate Optional: If the parameter is set to true, the origin.states are not included but excluded. (default: false)
target.state The single target state to which the linked Work Item shall transition.
workitem.type.ids Optional: Comma-separated list of Work Item type IDs. The action shall only be executed for these types.
follow.links Optional: If the parameter is set to true, the workflow action is executed not only for the directly linked Work Items, but also for their linked Work Items, and so on. (default: false) Linked Work Item loops are caught and result in a UserFriendlyException and the action is canceled.

 

What's New in Version 1.4.0

Updated January 2023

Changes for 1.4.0
- Added option to follow links and also execute the actions of these deep-linked Work Items
- Added parameter to optionally filter by Work Item type
- The workflow function is now aborted if a possible linking loop is detected

Changes for 1.2.0
- Made sure that the function is canceled if the workflow action of at least one linked work item cannot be executed
- Refactored code

Changes for 1.1.0
- Replaced log4j with Polarion logger for compatibility with Polarion 22R1
- Refactored code

 

Information

Vendor Kevin Schmiechen (Institute of Flight System Dynamics, Technical University of Munich)
Published Version 1.4.0 - January 2023
Categories
Price Free
Community Supported Extension This extension is not supported by Siemens PLM.
Requirements Polarion version 20 R1 (3.20.1) and later
Last tested with Polarion 22 R2 (3.22.2)