Versions Compared

Key

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


Panel

On this page

Table of Contents
maxLevel2
exclude(On this page|Use case).*
stylecircle
typeflat
separatorpipe



UI Text Box
sizemedium
typeinfo

Use case

Sum and multiply field values from fields of a list of issues and display the result on run time.



Configuration

UI Steps


UI Step

Create a new Calculated Number Field (by JWT) custom field and name it properly.

UI Text Box
typetip

Providing a description will help you to identify what the custom field does but this step is optional.



UI Step

Parser expression

Add the following parser expression:

Code Block
languagebash
linenumberstrue
sum(mathOnIssueList(subtasks(), (^{issue.cfAAAAA}cfaaaaa} != null ? ^{issue.cfaaaaa} : 0) * (^{issue.cfBBBBB}cfbbbbb} != null ? ^{issue.cfbbbbb} : 0)))


UI Text Box
typeinfo

This expression will multiply the field value values obtained from the field related to the field code {issue.cfAAAAAcfaaaaa} with the field value obtained from the field related to the field code {issue.cfBBBBBcfbbbbb} in every sub-task of the current issue and then sum all of these multiplications.

Please, note that before performing any calculation, it is evaluated if the fields of the sub-tasks contain a value with a conditional operator to avoid errors.



UI Step

Add the field to the relevant view screens.





Related use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
sortByTitle
cqllabel = "calculated-field" and space = "JWTSDC" and ancestor = "27066672"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Field typeNumber
Label





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