I have an automation statement where I am working out % complete and this rolls up to show %complete in the parent Epic. It all works ok but occassionally, the child issues in the Epics have no Story Points and therefore I get a divide by 0 error. I've been trying to use IF to make this conditional so that if varTotalStoryPoints.asNumber is zero, I just assign 0 to the variable and avoid the divide by zero error but I just cant get the syntax right - can anybody help please ?
{{#=}} {{varStoryPointsComplete.asNumber}} / {{varTotalStoryPoints.asNumber}} * 100 {{/}}