Deleting unwanted attachments from an issue
Summary
Sometimes issues collect a bunch of unwanted attachments, especially when automatically added by the email handler. This is a quick way to remove a subset of attachments quickly with a regex statement. Be careful .
Steps
atlassian jira --action runFromAttachmentList --issue XXX-123 --regex "image.*" --common "-a removeAttachment --issue @issue@ --id @attachmentId@"
Requirements
- Jira Command Line Interface (CLI)
- Release 3.9 is required to use @issue@, otherwise just repeat the issue key
Â
Â
Confluence®, Jira®, Atlassian Bamboo®, Bitbucket®, Fisheye®, and Atlassian Crucible® are registered trademarks of Atlassian®
Copyright © 2005 - 2024 Appfire | All rights reserved. Appfire™, the 'Apps for makers™' slogan and Bob Swift Atlassian Apps™ are all trademarks of Appfire Technologies, LLC.