Assigning a custom workflow to a work item type in Rational Team Concert

Go To StackoverFlow.com

1

I'm in the process of customizing Rational Team Concert to include a custom work item type. As part of the testing of the work item type as I created it I populated a few of the custom work items with data. As I enhanced the custom work item type and added additional attributes I was able to use the "Check attributes usages in repository" from the "Types and Attributes" to ensure that the new attributes were propagated to my test work items.

Now I've gotten to the point where I need to create a custom workflow for this work item type. I've defined the workflow and and assigned it to the work item type, but my existing test work items can't seem to use it. Clicking on the "Check workflow usages in repository" link says "There are 9 work items in the repository referencing workflow states or resolutions that are not present in the bound workflow. Do you want to show these items in the Work Items view?".

Fixing potential problems? Maybe

The workitem view then just says that status = 1 for the test work items. Listing of the 9 test work items

If I select a work to open in the rich client editor all of the process elements are inactive. If I open it in the web editor, it says that the status is "1", as shown below:

Web Client Process Problems

Is there any way to fix this and change the workflow of existing work items? I should add that new work items work just fine, but I'm worried about what might happen if I need to update the process again in the future.

2012-04-04 22:05
by Pridkett


1

In the context of work item customization, you have to manually sync existing work item attributes with the most recent version of the PA in order to take your changes into account.

The steps are detailed here in the manual page "Defining work item types and attributes":
(bottom of the page)

To manually update existing work items with new or modified custom attributes:

  1. Run a query so that the query results contain all the work items that you want to update.
    Note: Do not select any relationships to be shown in the query results.
    If relationships are shown, the Type icon is not displayed and you cannot complete these steps.
    To clear all relationships shown, in the Work Items view menu, select Relationships, click Deselect all, and then click OK.
  2. In the Work Items view, select the work items that you want to modify.
  3. In the row of one of the selected work items, right-click the Type icon and select Synchronize attributes.

Thanks. Eric.

2012-04-06 05:04
by Eric Jodet
+1 but never just mention a link. Always include the relevant information as well as the link. That way, if said link goes stale, the information will live forever in Stack Overflow or (even if Stack Overflow disappears somehow) in one of Stack Overflow archive dumps (see http://blog.stackoverflow.com/2009/06/stack-overflow-creative-commons-data-dump/) - VonC 2012-04-06 06:12
sorry - first contribution - I will try to keep that in min - Eric Jodet 2012-04-06 14:52
Oh right. Welcome to Stack Overflow then :- - VonC 2012-04-06 14:55
@EricJodet: Thanks for a more detailed explanation of how to synchronize the attributes. Before I was having to kinda brute force that process too. The problem, however, was not that I couldn't synchronize the attributes, it's that changes to the workflow for the workitem left many of the workitems in an undefined state (see the screenshot showing "Status 1" above. As near as I can tell there isn't a synchronize workflow button - Pridkett 2012-04-06 15:08
Ads