Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation Attachments URL (JIRA Cloud)

Dave Jackson April 9, 2020

Hi, Creating some custom notification templates.

Is there no way to include the attachment or attachment URL in the reply? I tried all the existing smart values here but it doesn't seem to include it.

 

https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/

3 answers

1 accepted

2 votes
Answer accepted
Ste Wright
Community Champion
April 10, 2020

Hi @Dave Jackson

I managed to get the attachment URL working using this answer

I'm not sure if you're using Automation for Jira - this is how I did it if you are:

  1. Create a new rule, with a trigger - we used Issue Updated
  2. Add an action, Send Email 
  3. Select a To - such as Assignee
  4. Enter your text into the "Content" box - including the attachments list using the below script
  5. Press Save, name your rule and activate it

Script:

<ul>
{{#issue.attachment}}
<li><a href="{{content}}">{{filename}}</a></li>
{{/issue.attachment}}
</ul>

Ste

Dave Jackson April 11, 2020

Awesome, thank you!

Like Ste Wright likes this
Hend Salem November 6, 2024

Hi @Ste Wright 

I get this error message when trying to download the attachment

 

{"errorMessages":["You do not have permission to view attachment with id: 43978"],"errors":{}}

 

How can I fix this?

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 6, 2024

Hi @Hend Salem -- Welcome to the Atlassian Community!

As this is a very old thread, I recommend creating a new question, and perhaps adding a link to this one.  This will ensure the maximum number of people see your question to offer ideas.

And also, that error indicates what is says: the person trying to access the attachment does not have permission to do so.  Either the access is restricted within Jira, or the person does not have a Jira account, or the person is not logged into Jira.

Kind regards,
Bill

0 votes
Katrina Atkinson February 21, 2023

Hello, 

Was the ability to use a smart value in order to add the attachment file from the trigger issue to an automated email solved? very interested in this functionality.  

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 15, 2020

Hi @Dave Jackson 

It appears this is not possible yet, and there is an item in the automation backlog to add it:

https://codebarrel.atlassian.net/browse/AUT-460

 

Best regards,

Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events