Add fields

To add the required fields for Defect customization:

  1. Log on to ALM as a project administrator.
  2. Click Tools / Customize. The “Application Lifecycle Management - Project Customization" module opens.
  3. Add the following fields for the defect entity in Project Entities (XX and XY are sequential numbers auto-generated by ALM).

    Field Name

    Field Label

    Field Type

    Remarks

    BG_USER_XX

    Synchronize with SM Problem

    Lookup List/YesNo

    Select the “Verify Value” check box

    BG_USER_XY

    Problem ID

    String

     

    Note The data type requirements for QC/ALM fields are described in Matching types.

  4. Click Workflow > Script Editor.
  5. Choose Defects module script.
  6. Set the Readonly fields by adding the following lines to the Bug_New and Bug_Moveto subroutines:

    if (Bug_Fields("BG_USER_XX").Value="Y") then
      Bug_Fields("BG_USER_XX").IsReadOnly=True
    end if
    Bug_Fields.Field("BG_USER_XY").IsReadOnly=True

    The if loop above marks the field “Synchronize with SM Problem” as read-only after selected and saved.

  7. Save your changes.