Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from this space and version 2.5.3


Section


Column
width600px


Panel
borderColor#333f48
bgColor#FFFFFF
titleColor#eeeeee
borderWidth1
titleBGColor#333f48
borderStylesolid
titleOn this page

Table of Contents
maxLevel12



Column




Features used to implement the example



Example:

 Count number

Number of open subtasks

In this example, the subtasks of the current issueCount the number of subtasks, which are open - so (in status category "category  To Do" or "In Progress" -, will be counted and displayed in a Calculated Number Field).

The configuration of this custom field will look like thisA valid configuration for this Calculated Text Field:

Text to be parsed

is: count

  • count(filterByPredicate(subtasks(), ^%{00144} = "To Do" OR ^%{00144} = "In Progress"))


Note that:

  • %{00144} is the field code for field  Status categoryCategory
  • The ^ is used for referencing to the field values of the issue list l - in this case "subtasks()" (see below). Otherwise it would be referenced . Without, the field codes would reference to the current issue.
    [Schema for function filterByPredicate(issue list l, boolean expression predicate)]


Adding the custom field Once configured and added to an issue with subtasks in different categories screen, the result will look like this:





Other examples of that function

Incoming Links
pageCalculated Number fieldField
labelsexample



Related Usage Examples

Content by Label
showSpacefalse
cqllabel = "example" and label = "calculated-field" and space = currentSpace()