Estoy creando una automatización que envíe una notificación por Slack cuando el tiempo registrado excede a la estimación original.
Me encuentro que la sentencias traen valores en distintos unidades
{{issue.timeTracking.timeSpent}} muestra el tiempo en [hora] [minuto]
{{timeoriginalestimate}} muestra el tiempo en segundos
Hay alguna forma de hacer el cálculo para pasar la estimación original a hora?
Probe colocando {{timeoriginalestimate}} {{/3600}} pero no funciona
Muchas gracias!
The smart value syntax is not correct - Please take a look at the following reference link on math expression with smart values -
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/ and look for "Divide" section for example.
Lastly, It is my understanding that all elements (including timeSpent) is always stored as in seconds in the back end.
Hope this also helps.
Best, Joseph Chung Yin
Muchas gracias! @Joseph Chung Yin a comunidad funcionando con la sintaxis, solo que no trae los decimales, si uso el operador "/" da un error la regla, indica el siguiente mensaje
ENVIAR MENSAJE DE SLACK
Error al representar valores inteligentes durante la ejecución de esta regla:
Unknown unary operator / at character position 1: / 3600
La sentencia que utilizo es: {{#=}}{{issue.parent.aggregatetimespent}} / 3600{{/}}
tomando como referencia los ejemplos del link que me compartiste
Para utilizar una expresión matemática, debes utilizar {{#=}} :
1 {{#=}}{{issue.Invoice Amount}} * 1.2{{/}}
y los operadores habilitados "/"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Buenos días, solo quería confirmar que la siguiente sintaxis anduvo perfecta para mostrar el tiempo trabajado en horas en una automatización
{{#=}}({{issue.aggregatetimespent}}/3600){{/}}h
Muchas gracias por la ayuda!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Sonia Lorena Paniagua
Your syntax for division is incorrect. Refer to
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/#Divide
You have also referenced the Original estimate field incorrectly
Try this:
{{issue.Original Estimate.divide(3600)}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Buenos días, una consulta mas @Joseph Chung Yin @Trudy Claspill , cuando tengo que mostrar luego de hacer la operación {{issue.aggregatetimespent.divide(3600)}}, y el tiempo registrado es por ejemplo 3h 30m solo muestra 3h, hay forma de mostrar los decimales?
Muchas gracias!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.