Hi all,
I'm using a calculated custom field from the Jira Misc Custom Field plugin.
Below is my formula to calculate the percentage difference between 2 budgets:
@Formula:
var basecost = issue.get("customfield_12104");
var actualcost = issue.get("customfield_13000");
var difference = actualcost-basecost;
var percentagediff = (difference/actualcost) * 100;
return percentagediff;
-->
As a test, with the base cost being 145000 and actual 157000, the calculation returns 7.643 in the custom field.
Using the default windows desktop calculator and Google Calc, the result is: 8.275.
The field itself is a Calculated Text Field, and the customfield_12404 & 13000 referenced in the code are standard numerical fields.
Any ideas? Appreciate the help!