How to copy a work item and create a new work item from RTC participant ?
Hi, I am working on a project where i have to create exact copies of the work item when save button is clicked. I understand that it needs to be done through a participant. Please help me out with the server APIs to get this done. Any help is much appreciated.
Accepted answer
Several participant examples can be found here https://rsjazz.wordpress.com/?s=participant&submit=Search
Comments
Thanks much for the answer and links Ralph, they were pretty useful. Is there a server API that returns list of all attributes of a work item ? There's workItem.getCustomAttributes() which returns custom attribute list, but i'm interested in all the attributes of a work items in particular. I saw an example of getting built-in attributes from a project area, but that's too much for a loop!
See https://rsjazz.wordpress.com/2013/01/02/working-with-work-item-attributes/ section
Getting the Work Item's Attributes in the API
Check the IWorkItem and the IWorkItemCommon interfaces. Why would handling all attributes be too much for a loop? If you want to copy everything, you need to iterate everything.
We have close to 200 attributes in the project area. I'm guessing that iterating everything will take a toll on the performance.
I am at a loss why anyone wants 200 attributes in a project area. There seems to be a serious "customize to death" issue with some of the deployments. This is also likely impacting the performance already.
1 vote
Ha ha, you're right. We're undergoing a simplification process already. Anyhow, thank you for your inputs, i've got enough information to take off.