Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 7

UI Text Box
sizemedium
typeinfo

Use case

Return the sum of the time spent worklogs of the issues under the epic in hours.

Expression

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

Code Block
languagejs
linenumberstrue
%{%{issue.issueType} = "Epic" ? sum(append(fieldValue({issue.timeSpent}, issuesUnderEpic()), [0])) / 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()), [0])) / 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 time spent worklogs of the issues under the epic in hours.

Complexity

Status
colourGreen
titleBeginner
Â