Precondition/follow-up actions in CCM RTC based on work item prefix ID
Hello,
We are trying to implement a custom precondition/follow-up action for a custom plugin that affects our work items according to their ID.
Is it possible to implement a run condition that affects all work items with the same prefix ID?
Currently we have the following run condition with exact match on witype id.
Currently we have the following run condition with exact match on witype id.
<followup-actions> <followup-action id="com.ibm.team.esa.setprogramprojectcode.participant.operationParticipant" name="NameAction"> <runconditions> <witype name="foo.type.action" states="Open"/> <witype name="foo.type.risk" states="Open"/> </runconditions> </followup-action> </followup-actions>
We will add other items with ID like 'foo.type.action-a6' or 'foo.type.action-test'. Is there any way in the code to avoid hard coding each ID and have something like 'foo.type.action*' to affect all of them?
Thank you in advance,
Regards
Accepted answer
If you perform https://jazz.net/library/article/1000 you would be aware that it is possible to configure operational behavior and how. As you show you can store configuration information in the process XML. What you do with that Information is up to you.
You should definitely perform the workshop mentioned. For more information and examples you can go here: https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/
You can access the work item type (as an example, or other work item related information) in the operational behavior, provided this is an operation on a work item. The type is a string. You can do any string operation you want and you can, for example search for pattern or prefixes or whatever.
It is up to you to extract the information you need for the decision to continue or exit the operation behavior, e.g. based on some common prefix based on the work item type.
Without additional information I would assume you can use prefixes for ID's or other information as a decision filter in the operation behavior.
Without additional information I would assume you can use prefixes for ID's or other information as a decision filter in the operation behavior.
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Apr 21 '22, 5:16 a.m.As far as I am aware there is no concept 'work item prefix in EWM.