Unable to delete the attachments from Attachment panel which are already removed from the Description, Comment or Fields

XMLWordPrintable

    • 13
    • Major
    • 18

      Issue Summary

      Unable to delete the attachments from Attachment panel which are already removed from the Description, Comment or Fields

      Steps to Reproduce

      1. Add the attachments to the description field via Copy-paste and via uploading the attachment.
      2. Delete the attachment from the description field manually.
      3. Observe that the attachments are still available in Attachment panel and there is no way to delete it.

      Expected Results

      When the attachments are removed from fields, it should be removed from the panel or allow Admins to delete them

      Actual Results

      The delete attachment option is not available.

      Workaround

      1. Get the Ids of the attachments using the below API endpoint:

      GET https://<hostname>.atlassian.net/rest/api/3/issue/<WorkItemkey>?fields=attachment
      

      2. Once the IDs are fetched, you can use the below Delete API endpoint to delete these attachments:

      DELETE https://<hostname>.atlassian.net/rest/api/3/attachment/{attachmentId}
      

      Attachments should be deleted.

              Assignee:
              Unassigned
              Reporter:
              Meghna Shah
              Votes:
              5 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated: