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

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

0 votes



3 answers

Permanent link
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

0 votes


Permanent link
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

0 votes


Permanent link
Thanks, it is working for me.

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,952

Question asked: Jul 21 '09, 8:49 p.m.

Question was seen: 5,381 times

Last updated: Jul 21 '09, 8:49 p.m.

Confirmation Cancel Confirm