attachmentUrls()

Current issue

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

Bash
attachmentUrls() #Output: Text list

Examples

Parser expression

Description

Bash
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

Issue list

Variant where you can additionally define an issue list.

Bash
attachmentUrls(issueList) #Output: Text list

Examples

Parser expression

Description

Bash
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

Parameter

Input (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

Regular expression

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

Bash
attachmentUrls(regularExpressions) #Output: Text list

Examples

Parser expression

Description

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

Parameter

Input (data type)

Description

regularExpressions

text list

A text list with valid regular expressions.

Output

This function returns a text list .

Issue list regular expression

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

Bash
attachmentUrls(issueList, regularExpressions) #Output: Text list

Examples

Parser expression

Description

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

Parameter

Input (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