Jira Bug with Automated Message

Parami.Swenson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 7, 2022

I am part of the support team at cisecurity and I have been uploading certifications which then gets sent via an automated email and a ticket gets created within the Marketing department with the links for the files that I have uploaded. One of the links works but the other links produces an error because Jira adds a comma next to the attachment id. Nothing has been changed on the support side with the automation message, so I think this may be a bug within Jira.

I have added some screenshots below. Thank you for your help

Capture.PNGCapture2.PNG

1 answer

0 votes
Tim Perrault
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.
February 7, 2022

Hi @Parami.Swenson 

 

The error is looking for the attachment with an ID of '298244,'. The important part there is the ',' as it thinks it is part of the ID. In the URL remove the ',' and you should see the attachment. 

How are you getting the links and then how are you constructing them into an email?

 

Thanks,

Tim

Parami.Swenson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 8, 2022

Thank you for your response @Tim Perrault ! 

It seems to be an issue with the attachment config macro - that has been in place for months.

image (2).png

Looking back through old tickets that, seems to be in there too and when I click on those links the attachment opens.

so not sure what has changed but tickets from a month ago have valid links, new tickets get the error.

So the URL to that attachment has changed. It used to be this -

image (3).png

and now it's this

image (4).png

It seems to me that Atlassian have changed something on the backend.

Tim Perrault
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.
February 8, 2022

@Parami.Swenson 

Instead of using {{attachment.content}} you could use something like this below:

 

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

 

This will create a list of the filename as URLs to the attachments.

 

Thanks,

Tim

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events