Forums

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

iterate & show only new attachments

Stefan Frost
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 13, 2018

HI,

 

we like to use the Automation for JIRA to sync Service Desk issues with cloned project issues. Since Attachments couldn't be synced we want to add a comment with links to the attachments.

But when I create a comment by automation like:

{{#triggerIssue.fields.attachment}}
[!{{content}}|width=200px!|{{content}}]

{{/triggerIssue.fields.attachment}}

 

all attachments will be printed, even if I upload only one new attachment.

I also tried "triggerIssue.fields.last.attachment" or "...match()" but that results in printing only the last attachment, even if I uploaded three.

 

Question:

Is it possible to print only the last added/deleted attachments?

Or is it possible to Iterate through all Attachments but just print all uploaded within the last 5 Minutes (some like: iterate .. match({{#now}}func=minusMinutes(5){{/now}})?

 

Best Stefan

1 answer

1 vote
andreas
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 13, 2018

Hi Stefan,

We don't support this yet unfortunately. At the moment you can only print all attachments.  I'm afraid you'll have to wait until https://codebarrel.atlassian.net/browse/AUT-162 is implemented.

We've got quite a few higher priority items in our backlog at the moment so it will be a while before we can get to this, but we'll let you know when we get a chance to work on this.

Cheers,
Andreas

dharper June 13, 2018

@andreas, This would truly be a great help for us, we prefer to not have to open permissions on certain project just so a user can access an attachment. 

Best 

Dan

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events