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 original estimates of the issues under the epic's parent in hours only in the epic's parent view.

Expression

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

%{%{issue.issueType} = "Initiative" ? sum(append(fieldValue({issue.originalEstimate}, union(issuesFromJQL("issuekey in portfolioChildIssuesOf("+%{issue.key}+")"), issuesUnderEpic(issuesFromJQL("issuekey in portfolioChildIssuesOf("+ %{issue.key} +")")))), [0] )) / 60 : null}

We consider the epic's parent to be a Initiatiave in this expression, but it could differ depending on the Advanced Roadmaps issue type hierarchy. To adapt to your issue type hierarchy change the following part of the expression:  " %{issue.issueType} = "Your Custom Issue Type" "

Used parser functions

Feature

Field type

Smart number field

Parsing mode

General

Expression
%{%{issue.issueType} = "Initiative" ? sum( append(fieldValue( {issue.originalEstimate} , union( issuesFromJQL("issuekey in portfolioChildIssuesOf("+ %{issue.key} +")"), issuesUnderEpic(issuesFromJQL("issuekey in portfolioChildIssuesOf("+ %{issue.key} +")")))), [0] )) / 60 : null}

We consider the epic's parent to be a Initiatiave in this expression, but it could differ depending on the Advanced Roadmaps issue type hierarchy. To adapt to your issue type hierarchy change the following part of the expression:  " %{issue.issueType} = "Your Custom Issue Type" "

Label
Use case description

Return the sum of the original estimates of the issues under the epic's parent in hours only in the epic's parent view.

Complexity