It's all about the answers!

Ask a question

Drag item from In Progress to Done and it's marked Invalid!


Mike Shkolnik (9809161143) | asked Jul 05 '11, 6:52 p.m.
Weird problem that shouldn't be possible. In the developers taskboard in the web UI I drag from In Progress to Done and an item is marked invalid! I do the same thing with the same items in Eclipse and it works fine. However if I do this with items in a different project, the web interface changes things to Done as expected. What could possibly have been set wrong in RTC for this project to have the web interface automatically change things to Invalid when dragged to Done even though the Eclipse interface works as expected? I checked the workflow and it looks good. This happens to both Tasks and Stories. The only way to get to Invalid is to Invalidate, which shouldn't happen when dragging to Done!

RTC 2.0.0.2 ifix 5

One answer



permanent link
Mike Shkolnik (9809161143) | answered Jul 29 '11, 1:58 p.m.
IBM Support helped me solve this problem. It's a known issue. Here's how it works. When you drag an item from TODO to IN PROGRESS to DONE, you are not really dragging it from one state to the next. In fact you are dragging it through state GROUPS. If you look at your workflow configuration, you will see your states are in one of three groups - OPEN, IN PROGRESS, and CLOSED. Those are the real columns you are using in Developers Taskboard. So when you drag something from IN PROGRESS to DONE, RTC finds the first state that is in the CLOSED group (and valid for your workflow) and changes the state to that. Ok, so why is INVALID the first state in the CLOSED group when it should be DONE? It's based on internal state IDs. For whatever reason, the INVALID state had a lower state ID than the DONE state. The solution is simple. Go to the project workflow tab and delete the INVALID state, then re-add the INVALID state, which creates a new INVALID state with a later internal state ID than the DONE state. Make note of the workflow settings before you delete it. However, note that any work items with that state will not suddenly have the new INVALID state. They will have a state that is not a valid state, which could cause all sorts of problems. So follow this:

1. Rename your old INVALID state to OLD INVALID.
2. Add a new state of INVALID and set the workflow settings to match OLD INVALID.
3. Do a query for anything with a status of OLD INVALID and change the state to INVALID for all those work items.
4. Delete the state of OLD INVALID.

If you have already fixed the problem and now have work items with a state that is not a valid state, have no fear, that can be fixed. Do a query for Status "is not" and check all states. The work items with states that are not in the list of states will be returned and you can fix them. However, since the states are not valid you will not be able to fix them in bulk. In fact you will have to edit them one at a time, make a change to the description (tap the spacebar) and then save, which will re-initialize the work item to New, which will then allow you to mark it with a valid Invalid state! :)

Note that we had this issue for Task, Story, and Epic. You need to make the change in all three workflows. We also had this issue for the Deferred state. Dragging an item from IN PROGRESS back to TODO would automatically mark it DEFERRED!

There is another way to avoid this issue, but it's a workaround, not a solution. Make sure your workflow only has one path. If your workflow has only one option to go from one group to another, then it will not mark your item erroneously. However, that's not really practical.

Your answer


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