Uploaded image for project: 'Jira Align'
  1. Jira Align
  2. JIRAALIGN-6755

Epic Strategic Value Score can be set to 0 via API causing issues in UI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 10.133.0
    • 10.130.3
    • REST API
    • 1
    • Severity 3 - Minor
    • No

      Issue Summary

      Epic Strategic Value Score can be set to 0 despite having 1-100 limits in UI. UI will then prevent users from being able to save new changes unless they edit the field, which is hidden behind 'Full details' expander, so it's not obvious what's wrong.

      Steps to Reproduce

      1. Set Strategic Score to 0 on an Epic via API with the below method
      2. Open the details panel for this Epic and change the description
      3. Save
      4. Observe that nothing appears to happen
      5. Expanding full details below focuses on the invalid field when saving

      Expected Results

      API should only allow values of null and 1-100 like in the UI.

      Nice to have: 'Full details' should be expanded to focus on the incorrect value or some other more obvious prompt would be helpful (like the red banner we have for other invalid save scenarios).

      Actual Results

      We can set the Strategic Value score on an Epic via API, for example:

      PATCH /rest/align/api/2/Epics/7747
      
      [
          {
              "op":"replace",
              "path":"strategicValueScore",
              "value": 0
          }
      ]
      

      When opening the details panel of such an Epic and modifying it, clicking Save or Save and close buttons appears to do nothing until full details are expanded.

      When full details are expanded, save button focuses on the incorrect value.

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available.

      Please double-check that the value of Strategic Value score is between 1-100.

            fea1a6ef3355 Yannick Genin
            c7f2a2ebc58e Kirill Duplyakin
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: