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

Syntax
attachmentUrls() #Output: Text list
Examples
Parser expressionDescription
attachmentUrls()

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

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

Output

This function returns a TEXT LIST


Variant where you can additionally define an issue list.

Syntax
attachmentUrls(issueList) #Output: Text list
Examples
Parser expressionDescription
toString(attachmentUrls(subtasks()))

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

To achieve this, the following functions are used:

Additional information

Parameters used in this function

ParameterInput (data type)Description
issueList

ISSUE LIST

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

This function returns a TEXT LIST


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

Syntax
attachmentUrls(regularExpressions) #Output: Text list
Examples
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:

Additional information

Parameters used in this function

ParameterInput (data type)Description
regularExpressions

TEXT LIST

A text list with valid regular expressions.
Output

This function returns a TEXT LIST.


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

Syntax
attachmentUrls(issueList, regularExpressions) #Output: Text list
Examples
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:

Additional information

Parameters used in this function

ParameterInput (data type)Description
issueList

ISSUE LIST

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

TEXT LIST

A text list with valid regular expressions.
Output

This function returns a TEXT LIST


Use cases and examples