Remove either the label use-case-smart-text or use-case-smart-number depending on the feature the use case is based on

Use case

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

Expression

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

%{%{issue.issueType} = "Epic" ? (sum(append(fieldValue({issue.timeSpent}, issuesUnderEpic()), [{issue.timeSpent}] )) / 60) : null}

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

Feature

Field type

Smart number field

Parsing mode

General

Expression
%{%{issue.issueType} = "Epic" ? (sum(append(fieldValue({issue.timeSpent}, issuesUnderEpic()), [{issue.timeSpent}] )) / 60) : null}

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.

Complexity