This function returns a text list with all attachment URLs of the current issue.


attachmentUrls() #Output: Text list



Parser expressionDescription


toString(attachmentUrls())


This example returns the URLs of all issue attachments, e.g.;

https://www.test.com/jira/secure/attachment/29298/icon.png

To achieve this, the following functions are used:



This function returns a




Variant where you can additionally define an issue list.


attachmentUrls(issueList) #Output: Text list



Parser expressionDescription


toString(attachmentUrls(subtasks()))


This example returns the attachment URLs of all sub-tasks.

To achieve this, the following functions are used:



Parameters used in this function

ParameterInput (data type)Description
issueList

Any given issue list. Usually this value is retrieved from a function (e.g. linkedIssues() or subtasks()).



This function returns a




Variant where you can additionally define several regular expressions within a text list.


attachmentUrls(regexp) #Output: Text list



Parser expressionDescription


toString(attachmentUrls([".*\\.png", ".*\\.jpg"]))


This example returns a list with all attachments that have the file ending png or jpg.

To achieve this, the following functions are used:


toString(attachmentUrls(["(.*\\.png|.*\\.jpg)"]))


This example returns the same list like above but by combining both regular expressions to a single one.

To achieve this, the following functions are used:



Parameters used in this function

ParameterInput (data type)Description
regexp

A text list with valid regular expressions.



This function returns a .




Variant where you can define an issue list and a text list for regular expressions.


attachmentUrls(issueList, regexp) #Output: Text list



Parser expressionDescription


toString(attachmentUrls(subtasks(), [".*\\.png", ".*\\.jpg"]))


This example returns a list with all sub-tasks' attachments that have the file ending png or jpg.

To achieve this, the following functions are used:


toString(attachmentUrls(subtasks(), ["(.*\\.png|.*\\.jpg)"]))


This example returns the same list like above but by combining both regular expressions to a single one.

To achieve this, the following functions are used:



Parameters used in this function

ParameterInput (data type)Description
issueList

Any given issue list. Usually this value is retrieved from a function (e.g. linkedIssues() or subtasks()).
regexp

A text list with valid regular expressions.



This function returns a





Status
Tech review

Style guide




Short description

Returns all attachment URLs of the given issue(s).

Output

Available since

Label