How to preserve the sate of the work item when changing its type?
Hi All,
We recently created few custom work item types and wanted to change the type of some existing workitems to the newly created one.
when we are changing the type we observe that the state of the work item is not preserved.is there any way to preserve the state.
we have the same workflow for both the work items.
Thanks,
Surender
Accepted answer
To keep the state the same, in case the condition Sam mentions in https://jazz.net/forum/questions/170873/how-to-preserve-the-sate-of-the-work-item-when-changing-its-type/170875 is not given and you change a bunch of work items, you can
- Export the ID and state to CSV using a query
- Then bulk change the type
- Them import the CSV and update the work items
This requires that the state exists in the new workflow.
Comments
this is how to correct a general problem with incorrectly mapped states, and is the fastest, easiest way.
but it SHOULD work as part of the change type operation.. as long as there is a MATCHING state ID in the change TO type. none of the workflow 'operations' are executed, just like for like