It's all about the answers!

Ask a question

How to copy existing work item to create a new item via Java RTC Plain API?


Terry Ho (134) | asked Aug 24 '15, 12:49 p.m.
edited Aug 24 '15, 12:50 p.m.

Hi,  I am working on a project which requires me to automate a work item creation process.  The new work item's attributes and values is base on old work item except one attribute.

Does anyone knows how to do a copy of work item?

Thanks,

Accepted answer


permanent link
Bill Ferro (21) | answered Aug 25 '15, 7:24 p.m.
Terry,

I found this item on developerworks helpful as a starting point for writing your own tool:

https://www.ibm.com/developerworks/community/blogs/extendingrtc/entry/duplicate-workitem?lang=en_us
Terry Ho selected this answer as the correct answer

Comments
Terry Ho commented Aug 26 '15, 1:05 p.m.

Hi Bill, thanks for the hint. I will check it out.


Terry Ho commented Aug 26 '15, 1:13 p.m.

Hi Bill, I just went there but somehow the page didn't have explaination and didn't show any example.  Can you advise?  thanks.


Bill Ferro commented Aug 26 '15, 1:28 p.m.

Hi Terry, the page has two code snippets on it.  The first snippet details two methods: duplicateWorkItem and copyAttrValues.  Hopefully can see this in your browser.  It's not a full, working example, but may be enough to get you started.

Your answer


Register or to post your answer.