It's all about the answers!

Ask a question

Precondition/follow-up actions in CCM RTC based on work item prefix ID


Vincenzo Keller (192) | asked Apr 21 '22, 4:52 a.m.
edited Apr 21 '22, 6:55 a.m.
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.
<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

Comments
Ralph Schoon commented Apr 21 '22, 5:02 a.m. | edited Apr 21 '22, 5:16 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

As far as I am aware there is no concept  'work item prefix in EWM.

Please tag you questions with at least one product.
If you perform https://jazz.net/library/article/1000 you would be aware that it is possible to configure operational behavior and how.

You can store configuration information in the process XML. 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/


Accepted answer


permanent link
Ralph Schoon (63.2k33646) | answered Apr 21 '22, 8:50 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Apr 21 '22, 9:50 a.m.

 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.

Vincenzo Keller selected this answer as the correct answer

Comments
Vincenzo Keller commented Apr 21 '22, 12:20 p.m. | edited Apr 22 '22, 7:38 a.m.

 Dear Ralph,


Your point is very clear.
Thank you for clarifying ideas.

Best Regards
Vincenzo

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.