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

Operation id for a specific workitem save action

Hi All,
I have a requirement to trigger a server side plugin (say Follow up action) when Save operation is performed in a workitem of specific type and not for all workitem save operations

As of now, I have used the common workitem save operation id: "com.ibm.team.workitem.operation.workItemSave" which triggers my plugin when save action is performed in any workitems but I need that to be triggered only when a particular workitem is saved.

Is it possible to limit the trigger to happen only for a specific workitem save operation? or Is there any operation id available for any specific workitem save operation?

Please drop your comments ASAP

Thanks in Advance

0 votes



2 answers

Permanent link
The workitem Save operation event is fired for every workitem save.

the chain of participants/advisors is called on that single event.

why can't your code filter out all the other changes it doesn't care about?

for example, I have an advisor that is only interested in saves where dependant workitems are not resolved.

if any other save event occurrs, my code is called, but doesn't do anything (well, it checks for the condition and exits without any errors)

0 votes


Permanent link
The way Sam describes it is, as far as i know, the way it is supposed to be done. Please read the Extensions Workshop, it describes that the plugin should try to identify if it needs to do more work as quick as possible and just stop if there is nothing to do. It is way easier for the extension to decide than trying to provide special capabilities in the extension point provider.

0 votes

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
× 10,936

Question asked: Mar 27 '12, 11:05 a.m.

Question was seen: 4,544 times

Last updated: Mar 27 '12, 11:05 a.m.

Confirmation Cancel Confirm