Versions Compared

Key

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


Page properties
hiddentrue
Status
Tech review

Status
titletodo

Style guide

Status
titletodo

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

Page properties
hiddentrue
Short description

Returns the URL of attachments of the current issue.

Output Statussubtletruetitletext listAvailable since

Status
subtletrue
colourBlue
title2.4.8

UI Text Box
sizemedium
typeinfo

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


Code Block
languagebash
titleSyntax
linenumberstrue
attachmentUrls() #Output: Text list


Parameter description.
UI Expand
titleExamples
UI Expand
titleAdditional information


Parser expressionDescription


Code Block
languagebash
linenumberstrue
attachmentUrls()


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

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

Parameters used in this function

ParameterInput (data type)Description
xxx
Status
subtletrue
titledata type



UI Expand
titleOutput

The This function returns a

Status
subtletrue
titletext list




UI Text Box
sizemedium
typeinfo

Variant where you can additionally define an issue list.


Code Block
languagebash
titleSyntax
linenumberstrue
attachmentUrls(issue list issue_listissueList) #Output: Text list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
toString(attachmentUrls(subtasks()))


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

To achieve this, the following functions are used:



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
xxxissueList

Status
subtletrue
titledata typeissue list

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



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext list




UI Text Box
sizemedium
typeinfo

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


Code Block
languagebash
titleSyntax
linenumberstrue
attachmentUrls(text list attachments_regexpregularExpressions) #Output: Text list


UI Expand
titleExamples


Parser expressionDescription


Code Block
linenumberstrue
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:


Code Block
linenumberstrue
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:



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
xxxregularExpressions

Status
subtletrue
titledata typetext list

A text list with valid regular expressionsParameter description.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext list
The URL of attachments is returned from issues with names matching a regexp in attachments_regexp.




UI Text Box
sizemedium
typeinfo

This function returns the URL of attachments of issues in issue_list with names matching a regexp in attachments_regexpVariant where you can define an issue list and a text list for regular expressions.


Code Block
languagebash
titleSyntax
linenumberstrue
attachmentUrls(issue list issue_listissueList, text list attachments_regexpregularExpressions) #Output: Text list


UI Expand
titleExamples


Parser expressionDescription


Code Block
linenumberstrue
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:


Code Block
linenumberstrue
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:



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
xxxissueList

Status
subtletrue
titledata typeIssue list

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

Status
subtletrue
title

data type
text list

A text list with valid regular expressionsParameter description.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext list



Image AddedUse cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_attachmenturls" and space = currentSpace()


Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

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



Page properties
hiddentrue
id1


Parser function cloud
Map(error)
Notes

Workaround


Code Block
languagebash
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.




Page properties
hiddentrue


Short description

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

Output

Status
subtletrue
titletext list

Available since

Status
subtletrue
colourBlue
title2.4.8

Label