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


attachmentUrls() #Output: Text list



Parser expressionDescription


attachmentUrls()


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

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



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(regularExpressions) #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
regularExpressions

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, regularExpressions) #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()).
regularExpressions

A text list with valid regular expressions.



This function returns a



Use cases and examples




Status
Tech review

Style guide




Parser function cloud
Map(error)
Notes

Workaround


issue?.attachments?.map(a => "https://jwt-cloud-integration.atlassian.net/secure/attachment/" + a.id + "/" + a.filename)

It's not possible to get the attachment's content, which is the attachment's URL, even if it appears in the json. So the only way to replicate the behavior would be by "manually" writing the URL.





Short description

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

Output

Available since

Label