Skip to content

Instantly share code, notes, and snippets.

@thiagosouza
Created May 29, 2025 15:18
Show Gist options
  • Save thiagosouza/925189472eb0a1188e237e6694e4d83f to your computer and use it in GitHub Desktop.
Save thiagosouza/925189472eb0a1188e237e6694e4d83f to your computer and use it in GitHub Desktop.
Notion
divide(
sum( /*points done, or in progress*/
prop("Tasks").map(
toNumber(
current.prop("Status").match("Done|Archived") ? current.prop("Estimates") : 0
)
),
prop("Tasks").map(
toNumber(
current.prop("Status").match("QA|Merge|Revisión|Pipeline") ? toNumber(current.prop("Estimates")) * 0.8 : 0
)
),
prop("Tasks").map(
toNumber(
current.prop("Status").match("Codificación|Prueba\ Unitaria") ? toNumber(current.prop("Estimates")) * 0.2 : 0
)
),
prop("Tasks").map(
toNumber(
current.prop("Status").match("Planning|Planificatión|Refinamiento|Definición") ? toNumber(current.prop("Estimates")) * 0.05 : 0
)
)
),
sum( /*total estimates*/
prop("Tasks").map(
toNumber(current.prop("Estimates"))
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment