Page History
Section | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Example:
Count numberNumber 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: countcount(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 | ||||
---|---|---|---|---|
| ||||
Related Usage Examples
Content by Label | ||||
---|---|---|---|---|
|