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 remaining estimates of the issues under the epicĀ in hours.

Expression

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

ExpressionDescription

Ā 

Code Block
languagejs
linenumberstrue
%{%{issue.issueType} = "Epic" ? sum(append(fieldValue({issue.remainingEstimate}, issuesUnderEpic()), [0])) / 60 : null}

This example returns theĀ sum of the remaining estimates of the issues under the epicĀ in hours.

To achieve this, the following functions are used:

  • sum()
  • fieldValue()
  • issuesUnderEpic()
  • append()
  • 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.remainingEstimate}, issuesUnderEpic()), [0])) / 60 : null}
    Parser functions
    Label
    Use case description

    Return theĀ sum of the remaining estimates of the issues under the epicĀ in hours.

    Complexity

    Status
    colourGreen
    titleBeginner
    Ā