Change category of WI through followup action
![]()
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
![]()
Jared Burns (4.5k●2●9)
| 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 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 |
![]()
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 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 |
![]()
Thanks, it is working for me.
|
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.