Versions Compared

Key

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


Panel

On this page

Table of Contents
exclude(On this page|Use case).*
stylecircle
typeflat
separatorpipe



UI Text Box
sizemedium
typeinfo

Use case

Count the number of subtasks, which are open (in status category To Do or In Progress).


Configuration

UI Steps


UI Step

Create a new Calculated Number Field (by JWT) custom field and name it properly.

UI Text Box
typetip

Providing a description will help you to identify what the custom field does but this step is optional



UI Step

Parser expression

Add the following expression:

Code Block
languagebash
titleMath expression for Calculated Number field:
linenumberstrue
count(filterByPredicate(subtasks(), ^%{00144} = "To Do" OR ^%{00144} = "In Progress"))


Expand
titlemore info...


UI Text Box
typeinfo
  • %{00144} is the field code for Status Category
  • The ^ is used for referencing the field values of the issue list l - in this case, subtasks(). Without, the field codes would refer to the current issue.
    [Schema for function filterByPredicate(issue list l, boolean expression predicate)]

To achieve this, the following functions are used:




UI Step

Once configured and added to an issue screen, the result will look like this:




Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue