-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Medium
-
Component/s: Work Item - Attachments
-
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
- Add the attachments to the description field via Copy-paste and via uploading the attachment.
- Delete the attachment from the description field manually.
- 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.