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

Will change of workflow affect workitems already exists?

What will happen to the existing workitems if we change the workflow of a workitem type? Do we need to update all or can we leave it as-is?

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?

0 votes


Accepted answer

Permanent link
If you change the workflow, RTC will use the state ID's for the new workflow. For all existing work items based on the old workflow, if there is a state with the same ID in the new workflow, it will show. If there is none, as far as I can tell, the initialize action will be executed and you end up in the new state. The resolution is likely also affected, but I have not played with that.

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.
Karthik Krishnan selected this answer as the correct answer

0 votes

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.
 


One other answer

Permanent link
 Hello,

If you remove existing states from workflow, it will show you data impacted and you can update all affected work items to another state. If you add new state or action, it will be reflected for all existing workitems as well.

This article explains impact of each change in detail:
https://jazz.net/library/article/1002

- RShah

0 votes

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

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
× 12,029

Question asked: Jun 27 '16, 5:44 a.m.

Question was seen: 2,002 times

Last updated: Jun 27 '16, 9:12 a.m.

Confirmation Cancel Confirm