Versions Compared

Key

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

UI Text Box
sizemedium
typeinfo

Use case

Return the sum of the worklogs of an epic and the issues under it in hours without decimal part.

Expression

Create and configure a Smart field using this expression inGeneral parsing mode:

Code Block
languagejs
linenumberstrue
%{%{issue.issueType} = "Epic" ? (sum(append(fieldValue({issue.timeSpent}, issuesUnderEpic()), [{issue.timeSpent}] )) / 60) : null}
UI Text Box
typetip

If the resulting number from the expression contains too many decimal numbers, feel free to select one of the available display formats or to configure it manually.

Used parser functions

Page properties
hiddentrue
Feature

Field type

Smart number field

Parsing mode

General

Expression
Code Block
languagejs
linenumberstrue
%{%{issue.issueType} = "Epic" ? (sum(append(fieldValue({issue.timeSpent}, issuesUnderEpic()), [{issue.timeSpent}] )) / 60) : null}
UI Text Box
typetip

If the resulting number from the expression contains too many decimal numbers, feel free to select one of the available display formats or to configure it manually.

Label
Use case description

Return the sum of the worklogs of an epic and the issues under it in hours without decimal part.

Complexity

 

Status
titleINTERMEDIATE
Â