Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,970
Community Members
 
Community Events
176
Community Groups

Add external attachments to JETI Event notifications

Hi all,

we're using JETI on Jira Service Desk and want to use it for customer notifications. 

I created a Notification Template and an event for 'public comment added'. I would like to attach the last attachment that was shared with customer to the mail which should be possible following this documentation: https://www.meta-inf.hu/display/PLUG/Event+Notifications

However, there is no option to include attachments available. 

Is this available for service desk at all?

Best, Anne

1 answer

still no answer after so much time? :( 
is there anybody from JETI who could answer, please?

Hi Karolina!

I hope this helps: https://metainf.atlassian.net/wiki/spaces/KB/pages/683802625/Render+Attachments+Render+Last+Attachment 

If it is not answer for your question, feel free to contact us on our support portal here: https://metainf.atlassian.net/servicedesk/customer/portal/1/group/2

Best regards,

 

Attila

Like Karolina Dylewicz likes this

thanks! it's restricted access though. 

Sorry, I copied the interesting part for you:

Render Last Attachment:

#macro (renderLastAttachment $issue)
#set($attachments = $!issue.attachments)
#if($attachments)
#set($maxAttachmentId=0)
#foreach($attachment in $!attachments)
#if ($!maxAttachmentId == 0 || $!maxAttachmentId < $!attachment.id)
#set($lastAttachment=$attachment)
#set($maxAttachmentId=$attachment.id)
#end
#end
#if($!lastAttachment)
<a href="$baseurl/secure/attachment/$!lastAttachment.id/$!{lastAttachment.id}_$!lastAttachment.getFilename()">$!lastAttachment.getFilename()</a>
#end
#end
#end

#renderLastAttachment($!issue)
Like Karolina Dylewicz likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events