Funcionalidades
Library: variables y fragmentos
Guarda valores y trozos de fórmula con nombre para usarlos en todas tus fórmulas y cambiarlos en un solo sitio.
Para qué sirve
Si varias fórmulas usan la misma tarifa, el mismo IVA o el mismo cálculo, no lo repitas: guárdalo en la Library con un nombre y úsalo por ese nombre. Cuando cambie, lo cambias una vez.
Variables
Un valor fijo con nombre. Puede ser un número o un texto.
| Nombre | Tipo | Valor |
|---|---|---|
tarifaHora | number | 85 |
iva | number | 0.21 |
SUM(children.{Horas}) * tarifaHora
Fragmentos
Un trozo de fórmula con nombre. Se usa como si escribieras ese trozo en su lugar.
| Nombre | Fórmula |
|---|---|
horasHijas | SUM(children.{Horas}) |
costeHijas | horasHijas * tarifaHora |
costeHijas * (1 + iva)
Un fragmento puede usar variables y otros fragmentos. La app detecta los ciclos (un fragmento que acaba usándose a sí mismo) y no deja guardarlos.
Nombres
- Letras, números y guion bajo, empezando por una letra o un guion bajo:
tarifaHora,coste_base. - No puede coincidir con una función (
SUM) ni con una colección (children,subtasks,linkedIssues,links). - En el modo Code, Ctrl+Espacio sugiere los nombres de la Library con su valor.
Qué pasa al cambiar un valor
Las fórmulas leen la Library al calcular, así que el nuevo valor se usa en el siguiente cálculo de cada issue. Para que todas las issues reflejen el cambio a la vez, lanza un recálculo de los campos afectados.
Antes de borrar
Si borras una variable o un fragmento que alguna fórmula usa, esa fórmula dará error hasta que lo vuelvas a crear o cambies la fórmula.
Features
Library: variables and fragments
Store named values and formula pieces to use across all your formulas and change them in one place.
What it is for
If several formulas use the same rate, the same tax or the same calculation, don't repeat it: store it in the Library under a name and use that name. When it changes, you change it once.
Variables
A named fixed value. It can be a number or text.
| Name | Type | Value |
|---|---|---|
hourlyRate | number | 85 |
vat | number | 0.21 |
SUM(children.{Hours}) * hourlyRate
Fragments
A named piece of formula. Using it is the same as typing that piece in its place.
| Name | Formula |
|---|---|
childHours | SUM(children.{Hours}) |
childCost | childHours * hourlyRate |
childCost * (1 + vat)
A fragment can use variables and other fragments. The app detects cycles (a fragment that ends up using itself) and won't let you save them.
Names
- Letters, digits and underscores, starting with a letter or an underscore:
hourlyRate,base_cost. - It cannot match a function (
SUM) or a collection (children,subtasks,linkedIssues,links). - In Code mode, Ctrl+Space suggests Library names with their value.
What happens when a value changes
Formulas read the Library when they calculate, so the new value is used the next time each issue is calculated. To make every issue reflect the change at once, run a recompute on the affected fields.
Before deleting
If you delete a variable or fragment that a formula uses, that formula will fail until you recreate it or change the formula.
¿No encuentras algo? Escríbenos aCan't find something? Write to contacto@fluxor-tech.com · Ver la ficha del productoSee the product page