It's all about the answers!

Ask a question

API to change existing workitem type


Pavithra Shivalingappa (128217) | asked Mar 23 '21, 7:44 a.m.

 Hello ,

     I want to change existing work item type to delivery type. 
IWorkItem provides only getter method getWorkItemType() .

How can we set the type?

One answer



permanent link
Ralph Schoon (63.1k33645) | answered Mar 23 '21, 12:00 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 Afaik you use


// change the type
IWorkitemCommon.updateWorkItemType(workingCopy.getWorkItem(), fNewType, fOldType, getMonitor());


Comments
Ralph Schoon commented Mar 23 '21, 12:02 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

There are examples for more or less the whole work item API here: https://github.com/jazz-community/work-item-command-line 

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.