Versions Compared

Key

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

UI Text Box
sizemedium
typeinfo

Use case

Return the number of issues under an epic including the sub-tasks of these issues.

Expression

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

ExpressionDescription
Code Block
languagejs
linenumberstrue
%{ %{issue.issueType} = "Epic" ? count(append(issuesUnderEpic(), subtasks(issuesUnderEpic()))) : null }

This example returns the number of issues under an epic including the sub-tasks

To achieve this, the following functions are used:

Page properties
hiddentrue
Feature

Field type

Smart number field

Parsing mode

General mode

Expression
Code Block
languagejs
linenumberstrue
%{ %{issue.issueType} = "Epic" ? count(append(issuesUnderEpic(), subtasks(issuesUnderEpic()))) : null }
Parser functions
Label
Use case description

Return the number of issues under an epic including the sub-tasks of these issues.

Complexity

Status
colourGreen
titleBeginner