Lenguaje de fórmulas
Issues hijas y enlazadas
Qué incluyen children y linkedIssues, cómo leer sus campos y cuáles son sus límites.
children
Las issues hijas de una issue. Incluye las dos formas de jerarquía de Jira:
- sus subtareas;
- las issues que la tienen como padre: las historias de un epic, o los hijos de cualquier nivel superior de tu jerarquía.
Si una issue aparece por las dos vías, se cuenta una sola vez. El alias subtasks significa lo mismo.
linkedIssues
Las issues enlazadas con la issue mediante enlaces de Jira (blocks, relates to, etc.), en cualquier
dirección. El alias links significa lo mismo.
Tres formas de usarlas
| Forma | Ejemplo | Devuelve |
|---|---|---|
| Un campo de todas | children.{Horas} | Lista de números, para SUM, AVG, MIN, MAX o MEDIAN. |
| Contarlas | COUNT(children) | Un número. |
| Recorrerlas | EACH(children, c => …) | Lista con el resultado de cada una. |
SUM(children.{Story Points})
COUNT(linkedIssues)
SUM(EACH(children, c => c.{Horas} * c.{Tarifa}))
Solo un nivel
children son las hijas directas. Para sumar nietos (por ejemplo, horas de subtareas en un epic), crea un
campo fórmula en las historias que sume sus subtareas, y otro en el epic que sume ese campo de sus historias. Gracias a
las cadenas de fórmulas, todo se mantiene al día solo.
Límites
- Se leen hasta 1.000 hijas por issue.
- Leer hijas o enlazadas necesita más llamadas a Jira que leer la propia issue. Ver Límites.
Comprueba qué ve la fórmula
La prueba del constructor muestra cuántas hijas tiene la issue y cuántas tienen cada campo.
Formula language
Child and linked issues
What children and linkedIssues include, how to read their fields and what their limits are.
children
An issue's child issues. It includes both kinds of Jira hierarchy:
- its subtasks;
- the issues whose parent it is: the stories in an epic, or the children of any higher level in your hierarchy.
An issue that shows up both ways is counted once. The alias subtasks means the same.
linkedIssues
The issues connected through Jira issue links (blocks, relates to, etc.), in either direction. The
alias links means the same.
Three ways to use them
| Form | Example | Returns |
|---|---|---|
| A field across all | children.{Hours} | A list of numbers, for SUM, AVG, MIN, MAX or MEDIAN. |
| Count them | COUNT(children) | A number. |
| Visit each one | EACH(children, c => …) | A list with each one’s result. |
SUM(children.{Story Points})
COUNT(linkedIssues)
SUM(EACH(children, c => c.{Hours} * c.{Rate}))
One level only
children are direct children. To add up grandchildren (for example, subtask hours on an epic), create a
formula field on stories that sums their subtasks, and another on the epic that sums that field across its stories.
Thanks to formula chains, it all stays up to date.
Limits
- Up to 1,000 children are read per issue.
- Reading children or linked issues takes more Jira calls than reading the issue itself. See Limits.
Check what the formula sees
The builder test shows how many children the issue has and how many have each field.
¿No encuentras algo? Escríbenos aCan't find something? Write to contacto@fluxor-tech.com · Ver la ficha del productoSee the product page