It's all about the answers!

Ask a question

API to change existing workitem type


Pavithra Shivalingappa (12828) | 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 (61.4k33643) | 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.