Ciao,
Ho creato un campo personalizzato chiamato "Stima Story" (campo numerico); quello che vorrei fare è sottrarre ogni volta che qualcuno registra il tempo sulla storia, sottraendo quel valore dalla "Stima Story". Tutto deve essere convertito in giorni.
Sto usando questo script ma non funziona
{{ (issue.fields["Stima Story"] o 0) - (worklog.timeSpentSeconds / 28800) }}
Grazie
DEar @Stefano De Santis
JMWE the template you’re using is Nunjucks.
o 0 is not valid syntax (that looks like Groovy/Italian). Use || 0.
worklog.timeSpentSeconds exists only in the Worklog event context; otherwise it’s undefined.
Correct script:
{{ (issue.fields["Stima Story"] || 0) - ((worklog.timeSpentSeconds || 0) / 28800) }}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.