Will change of workflow affect workitems already exists?
I want to update the workflow of "Task" workitem type from "Default workflow" to "Task workflow"
In my case both "Default workflow" and "Task workflow" are identical?
Process template: Formal process model
Does this also affects custom scripts?
Accepted answer
One way of dealing with this could be an CSV export of the affected work items and their states. Then, create a mapping of the target states and run an import with update.
Comments
The state and actions are identical in both the work flow as one is called "Default workflow" and the other is "Task workflow", which comes as part of the Formal process template provided by RTC.
In this case I will first analyze the internal representation
Thanks Ralph.
Checked and here is how the workflow is represented internally
Default workflow:
<dc:identifier>5</dc:identifier><dc:title>Closed</dc:title>
Task Workflow:
<dc:identifier>task_workflow.state.s1</dc:identifier><dc:title>Closed</dc:title>
Only the name is same where ask the identifier is different.
So In this case I guess all tasks will be "Initialized"
I did change in the test Project area and all "Task" were uninitialized. Guess this activity is more tedious than I thought.
Thanks Ralph
The export and some search and replace could provide a lot of help here
Yes that might help but I am talking about ~ 50000 + Task workitems
The work might get tedious. Perhaps we need to think of another solution for the problem we have.