how to convert one workitem type to the other ?
Hi All,
The following is my scenario where I want to convert Epic to feature.
we are trying to implement the scaled agile framework for which we want to add new workitem type Feature and this feature is replacing the existing epic .
I created Feature work item type taking the epic template as the starting template and added few more fields in addition to the existing one`s.
now I want to convert all the existing Epic to Feature.
My question is there any way that we can achieve using the RTC SDK API?
Thanks
Surender
The following is my scenario where I want to convert Epic to feature.
we are trying to implement the scaled agile framework for which we want to add new workitem type Feature and this feature is replacing the existing epic .
I created Feature work item type taking the epic template as the starting template and added few more fields in addition to the existing one`s.
now I want to convert all the existing Epic to Feature.
My question is there any way that we can achieve using the RTC SDK API?
Thanks
Surender
2 answers
We did this recently when we removed a "layer" of our hierarchy. We loaded the work items that we wanted to convert over and then did:
workItem.setWorkItemType(targetType.getId());
then handled any attribute changes (adding/removing custom attributes from the work item object)
and saved out the work item.
workItem.setWorkItemType(targetType.getId());
then handled any attribute changes (adding/removing custom attributes from the work item object)
and saved out the work item.
Comments
See https://rsjazz.wordpress.com/2012/11/19/using-an-expression-to-synchronize-attributes-for-work-items-of-a-specific-type/ for how to do the synchronize attributes. However, I think the work item will get the attributes needed for the new type immediately (and retain the old ones from the old type as well).