Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



2 answers

Permanent link
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.

1 vote

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).


Permanent link
 Hello Surender,
not sure if this can be achieved through API,
but you can convert your work items by synchronizing attributes
https://jazz.net/help-dev/clm/topic/com.ibm.team.workitem.doc/topics/t_updating_custom_attributes.html

Eric

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,943

Question asked: Nov 05 '14, 1:18 a.m.

Question was seen: 4,150 times

Last updated: Nov 05 '14, 9:58 a.m.

Confirmation Cancel Confirm