Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
UI Text Box
sizemedium
typeinfo

This function returns the result of a given Jira expression.

Code Block
languagebash
titleSyntax
linenumberstrue
jiraExpression(text) #Output: Text 
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue

This example returns:

Hi [~accountid:557058:145e0473-5707-439c-80e4-1160dd57f114],

the user John Doe has written 3 comments to this issue and created 2 sub-tasks.

Code Block
languagebash
linenumberstrue
%{Hi [~accountid:%{issue.project.lead}],
the user %{system.currentUser.displayName} has written 
%{jiraExpression("issue.comments.filter(c=>c.author.accountId==user.accountId).length")} comments to this issue and created %{jiraExpression("issue.subtasks.filter(s=>s.reporter.accountId==user.accountId).length")} sub-tasks.}

This example returns:1900,2000,1.5,6.1

Hi [~accountid:557058:145e0473-5707-439c-80e4-1160dd57f114],

the user John Doe has written 3 comments to this issue and created 2 sub-tasks.



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
text

Status
subtletrue
titletext

Any given text which can be evaluated as Jira expression.

UI Expand
titleOutput

This function returns a 

Status
subtletrue
titletext
 

UI Text Box
sizemedium
typeinfo

Variant where you can additionally define a list of issues which can be used within the Jira expression given as the first parameter. You can access these issues using issues as context.

Code Block
languagebash
titleSyntax
linenumberstrue
jiraExpression(text, issueList) #Output: Text list
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue
%{}

This example returns:

1900,2000,1.5,6.1

Code Block
languagebash
linenumberstrue
Hi [~accountid:%{issue.project.lead}],
the user %{system.currentUser.displayName} has written 
%{jiraExpression("issue.comments.filter(c=>c.author.accountId==user.accountId).length")} comments to this issue and created %{jiraExpression("issue.subtasks.filter(s=>s.reporter.accountId==user.accountId).length")} sub-tasks.

Hi [~accountid:557058:145e0473-5707-439c-80e4-1160dd57f114],

the user John Doe has written 3 comments to this issue and created 2 sub-tasks.


UI Expand
titleOutput

This function returns a 

Status
subtletrue
titletext list
 

UI Text Box
sizemedium
typeinfo

Variant where you can additionally define a string of Issue keys which can be used within the Jira expression given as the first parameter. You can access these issues using issues as context.

Code Block
languagebash
titleSyntax
linenumberstrue
jiraExpression(text, issueKeys) #Output: Text list
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue
%{}

This example returns:

1900,2000,1.5,6.1

Code Block
languagebash
linenumberstrue
Hi [~accountid:%{issue.project.lead}],
the user %{system.The current user %{issue.currentUser.displayName} has written 
%{jiraExpression("issue.comments.filter(c=>c.author.accountId==user.accountId).length")} comments to this issue and created %{jiraExpression("issue.subtasks.filter(s=>s.reporter.accountId==user.accountId).length")} sub-tasks.

Hi [~accountid:557058:145e0473-5707-439c-80e4-1160dd57f114],

the The current user John Doe has written 3 comments to this issue and created 2 sub-tasks.


UI Expand
titleOutput

This function returns a 

Status
subtletrue
titletext list
 

Page properties
hiddentrue
Short description

Returns the result of a Jira expression.

Output

Status
subtletrue
titletext
 
Status
subtletrue
titletext list