Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.
<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

0 votes

Comments

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

 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

0 votes

Comments

 Dear Ralph,


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

Best Regards
Vincenzo

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 457
× 72
× 17

Question asked: Apr 21 '22, 4:52 a.m.

Question was seen: 1,115 times

Last updated: Apr 22 '22, 7:38 a.m.

Confirmation Cancel Confirm