Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel

On this page

Table of Contents
maxLevel2
exclude(On this page|Use case).*
stylecircle
typeflat
separatorpipe



UI Text Box
sizemedium
typeinfo

Use case

Add a comment to the current issue with links to the attachments that were recently added. The time between the transition and the moment when the attachments are added will define if the issue was added recently. The length of this time span can be modified in the expression.


Configuration

UI Steps


UI Step

Target issue*

Choose Current issue


UI Step

Comment text*

Use the following expression with the expression editor set to Jira expression:

Code Block
languagebash
linenumberstrue
"Attachments added: " + issue.attachments.filter(attachment => attachment.created > new Date().minusMinutes(2)).map(attachment => "\n[" + attachment.filename+ "|https://jwtcum.atlassian.net/secure/attachment/"+attachment.id+"/"+attachment.filename+"]").reduce((myString, current) => myString + current, "")

Add a comment with the links of the attachments that were added two minutes before the transition.

UI Text Box
typetip

Replacing the number 2 with another number will allow you to modify the length of the time span established in the expression, increasing or decreasing it in minutes.




UI Step

Comment author*

Select Current user.


UI Step

Comment visibility*

Choose Unrestricted (all users).





Related use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
sortByTitle
cqllabel = "use-case" and space = currentSpace() and ancestor = "38569490"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Workflow functionAdd comment
Parser functions
Label
Use case descriptionA comment will be added to the current issue with links to the attachments included recently.
Complexity

Status
colourGreen
titleBeginner




Page properties
hiddentrue



Status
Tech review

Status
titletodo

Style guide

Status
colourGreen
titletododone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged