Versions Compared

Key

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


UI Text Box
sizemedium
typeinfo

This function returns a number list with results of the given calculation performed for each issue in the specified list.


Code Block
languagebash
titleSyntax
linenumberstrue
mathOnIssueList(issueList, mathExpression) #Output: Number list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
mathOnIssueList(linkedIssues("is blocked by"), ({function.issue.dueDate} != null ? {function.issue.dueDate} - {function.issue.created} : 0) / {HOUR})


This example returns a number list with the number of days from issue creation to the due date for all issues linked using "is blocked by" issue link type.

To achieve this, the following functions are used:


UI Text Box
typeinfo

{HOUR} is a time macro used to convert the output to hours.



Code Block
languagebash
linenumberstrue
mathOnIssueList(subtasks(), round(({system.currentDateTime} - {function.issue.created}) / {DAY}))


This example returns a number list with days of when each sub-task was created.


To achieve this, the following functions are used:


UI Text Box
typeinfo

{DAY} is a time macro used to convert the output to days.




UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
issueList

Status
subtletrue
titleIssue list

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

Status
subtletrue
titletext

A valid math expression.

The field values of the function issue is retrieved by using the function origin in front of the field codes.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber list


UI Text Box
typetip

If you only want to retrieve a specific field value from the given issues without any calculations, you might want to use the function fieldValue().



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



Image AddedUse cases and examples

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


Page properties
hiddentrue


Short description

Returns a number list with results of the given calculation performed for each issue in the specified list.

Output

Status
subtletrue
titlenumber list

Available since

Status
subtletrue
colourBlue
title2.2.2

Label