It's all about the answers!

Ask a question

Change category of WI through followup action


Santhosh Thenmozhi Rajendran (711910) | asked Jul 21 '09, 8:49 p.m.
Hi,

I am writing a followup action, whenever the user saves a work item, I am checking the state and if the state is say "Postponed", I am trying to change the workitem category to "Backlog" and trying to save it.

I can get all the details of the work item but I couldn't how to save the current working copy of the work item. I am using the com.ibm.team.workitem.service.IWorkItemServer but it throwing me error, saying its should be in prerequisities but as I am extending operationParticipant, I can't add prerequisite to plugin.xml.

Please help me.

Thanks,
Sany

3 answers



permanent link
Jared Burns (4.5k29) | answered Jul 22 '09, 7:55 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
On Wed, 22 Jul 2009 00:52:55 +0000, trsanthosh wrote:
I can get all the details of the work item but I couldn't how to save
the current working copy of the work item. I am using the
com.ibm.team.workitem.service.IWorkItemServer but it throwing me error,
saying its should be in prerequisities but as I am extending
operationParticipant, I can't add prerequisite to plugin.xml.

This is explained in the Process Developer Guide here:
https://jazz.net/wiki/bin/view/Main/TeamProcessDeveloperGuide#Adding_New_Operation_Participant

You'll need to read the part about what to do if you server-side
participant wants to reference other services. This shows how to
add your pre-requisites.

--
Jared Burns
Jazz Process Team

permanent link
megha mittal (15112615) | answered Jul 24 '09, 8:12 a.m.
Hi , I am doing similiar kind of thing i.e writing follow up condition for generating approval records on state change.I have written server side followup condition and extended IOperationParticipant.I have also used IWorkitemServer class to save WI.I have added the class to prerequisite in plugin.xml and it is working.
If the probem is regarding how to save WI working copy using IWorkitemServer you can see the following post
http://jazz.net/forums/viewtopic.php?p=19885#19885

Hope this will help you.


On Wed, 22 Jul 2009 00:52:55 +0000, trsanthosh wrote:
I can get all the details of the work item but I couldn't how to save
the current working copy of the work item. I am using the
com.ibm.team.workitem.service.IWorkItemServer but it throwing me error,
saying its should be in prerequisities but as I am extending
operationParticipant, I can't add prerequisite to plugin.xml.

This is explained in the Process Developer Guide here:
https://jazz.net/wiki/bin/view/Main/TeamProcessDeveloperGuide#Adding_New_Operation_Participant

You'll need to read the part about what to do if you server-side
participant wants to reference other services. This shows how to
add your pre-requisites.

--
Jared Burns
Jazz Process Team

permanent link
Santhosh Thenmozhi Rajendran (711910) | answered Jul 24 '09, 3:46 p.m.
Thanks, it is working for me.

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.