We have an automation comment that provides information and a image, but for the life of me I can't figure out how to attach images to a comment via automation without just linking to an externally held URL.
I started attempting to use the new Customized Email feature as it allows attachments to try to email itself with an attachment before I figured might be best if I just stopped and asked.
Is the only way an outside external URL? Or potentially a "Maintenance Ticket" that just contains the attachment list?
Cheers
Hello @Calvin
Is the file already attached to the work item prior to creation of the comment? It might be possible to include an attachment that is already on the work item.
If not, automation doesn't currently support adding a new attachment to a work item.
It isn't possible to upload an attachment during an automation because the automation is running in the cloud and cannot access a physical device where the file is located.
It isn't possible through the API to add an attachment referencing a file by URL on the Internet either.
Thanks Trudy unfortunately not attached prior, and appreciate you confirming its not super possible.
I don't know if useful for anyone but workaround I'm using at the moment is by adding !imgLink.png! to the comment in automation, and hosting the image on a confluence page and it seems to work, I'm not sure if thats because automation for jira has access to confluence. But this way seems to create the comment and pull the attachment into the ticket.
Not ideal though, but cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Calvin
As mentioned by @Trudy Claspill Jira automation's "Add comment" action does not natively support file attachments.
If you need something more dynamic (e.g., generating images on-the-fly per issue), a lightweight Forge app can handle the attachment via the REST API (POST /rest/api/3/issue/{issueIdOrKey}/attachments) and then add a comment referencing it. Overkill for most use cases, but it's the fully programmatic path.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.