It's all about the answers!

Ask a question

Work Item Creation from Server Side Plugin.


Muthukumar C (32712833) | asked May 29 '12, 3:29 a.m.
retagged Jun 08 '12, 9:34 a.m. by Evan Hughes (2.4k1318)
Hi,

My requirement is that when changing the Status of a Particular Work item, I want to create a new work item in another project area.

I am using JAVA and I have to develop this functionality in SERVER SIDE PLUGIN

Any ideas / sample codes will help me .

Thanks.
Muthukumar.C

Comments
Nikhil Bharti commented Nov 27 '12, 8:04 a.m.

Hey Muthu,


I've same requirement , where I need to create WI of type Task in different project area and copy summary and description fron current workItem.Could you please send me the sample code.

Thanks,
NikĀ 


Muthukumar C commented Nov 27 '12, 8:15 a.m.

Nik, I am not suppose to publish the code as per my company policy.
But i am sure that by reading all the previous discussion between me and sam, you can get a overview of the process.

Accepted answer


permanent link
sam detweiler (12.5k6195201) | answered May 29 '12, 8:58 a.m.
and this topic where I posted guidance too..

https://jazz.net/forums/viewtopic.php?t=25208&highlight=create+workitem
Ralph Schoon selected this answer as the correct answer

11 other answers



permanent link
sam detweiler (12.5k6195201) | answered May 30 '12, 9:07 a.m.
here is how to find the category choices.. (all found by looking at the Javadoc)

IWorkItemCommon.findCategories(IProjectAreaHandle, ItemProfile, org.eclipse.core.runtime.IProgressMonitor)

to get the target iteration, you need to find them.. starting at project

IDevelopmentLineHandle getProjectDevelopmentLine()
then u can get the iterations from the development line
IIterationHandle[] getIterations()
then u can analyze the iterations and decide which one to pick

Sam

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.