IBM Support

Enumeration attribute does not display enumeration literals for selection

Troubleshooting


Problem

This technote provides troubleshooting to use when you create or edit a work item in IBM Rational Team Concert (RTC) and notice that some enumeration-type attributes are not showing any literal values for selection

Symptom

When you create a new work item or edit an existing one, you notice that one or more enumeration-type attributes are not displaying any literals in the dropdown list. This occurs although the enumeration type associated with the attributes contains some literals.

Steps to reproduce:

    1. Create a project from Scrum template

    2. Navigate to the project's Process Configuration tab > Project Configuration > Work Items > Enumerations

    3. Create a new enumeration named 'Custom Priority'. Set the ID to customPriority



    4. Add the following enumeration literals to the newly created enumeration:
      • Name: P1 External Value: P1
      • Name: P2 External Value: P2

    5. Select P1 as default literal

    6. Navigate to Types and Attributes

    7. Select Defect in the Work Item Types section

    8. In the Attributes section, add a new attribute. The Name, ID, and Type as below:



    9. Navigate to Editor Presentations

    10. Select to edit 'com.ibm.team.workitem.editor.default'. This is the editor presentation used by the Defect work item type

    11. Expand Overview folder. Select Details section and click Add Presentation....

    12. In the Add Presentation dialog box, select Custom Priority Attribute as attribute. Set Kind to Enumeration and click OK


    13. Save changes

    14. In the project area, create a new Defect work item. Confirm that the Custom Priority Attribute shows 2 literals; P1 and P2 in the dropdown list

    15. Back to the project's Process Configuration Source tab, search for "customPriority". You should find 3 occurrences of this string.

    16. Replace all "custompriority" with "custompriority_new". Save change

    17. In the project area, create another Defect work item. Confirm that the Custom Priority Attribute does not show any literal in the dropdown list.



      Note: At this point, it will not be possible to find out what is incorrect by looking at the project's process configuration since the enumeration ID is consistent across all the places that it occurs in the process configuration source.

[{"Product":{"code":"SSUC3U","label":"IBM Engineering Workflow Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Work Items","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"4.0.1;4.0.2;4.0.3;4.0.4;4.0.5;4.0.6;4.0.7","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
16 June 2018

UID

swg21682160