Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-72384

Incorrect error message shown when deleting a comment on new issue view

XMLWordPrintable

      Issue Summary

      When jira.issue.editable is set to false on the workflow status, we will not able to delete the comment. However, the "Delete" option is shown on the new issue view and a misleading error message is shown when we attempt to delete the comment.

      Environment

      • Jira Cloud new issue view
      • Workflow status: jira.issue.editable=false

      Steps to Reproduce

      1. Edit the workflow and add a workflow property to "Done" status
        • Property Key: jira.issue.editable
        • Property Value: false
      2. Publish the workflow
      3. Attempt to delete a comment with "Done" status

      Expected Results

      • "Delete" option is not showing. Example on old issue view:
        • "jira.issue.editable" is true:
        • "jira.issue.editable" is false:

      Actual Results

      • "Delete" option is available on new issue view:
      • A misleading error message is shown:

      The below exception is thrown in the HAR file:

      https://example.atlassian.net/rest/api/2/issue/PROJECT-11/comment/10000 400 Bad Request
      
      {"errorMessages":["You can not delete the comment as the issue is in a non-editable workflow state."
      ],"errors":{}}
      

      Workaround

      Temporarily remove "jira.issue.editable" property from the Status to enable comment deletion feature

        1. screenshot-1.png
          screenshot-1.png
          98 kB
        2. screenshot-2.png
          screenshot-2.png
          72 kB
        3. screenshot-3.png
          screenshot-3.png
          115 kB
        4. screenshot-4.png
          screenshot-4.png
          140 kB
        5. Screenshot 2022-05-06 at 2.17.18 PM.png
          Screenshot 2022-05-06 at 2.17.18 PM.png
          42 kB
        6. Screenshot 2022-05-06 at 2.17.09 PM.png
          Screenshot 2022-05-06 at 2.17.09 PM.png
          43 kB

              Unassigned Unassigned
              cteh Ting
              Votes:
              32 Vote for this issue
              Watchers:
              32 Start watching this issue

                Created:
                Updated: