Hi All,
Can anyone help me with the below question?
I am trying divide the values of two custom fields and trying to show in a calculated field and i am unable to achieve this. Please let me know if i am doing something wrong
<!-- @@Formula: Integer.parseInt(issue.get("customfield_17703")) / Integer.parseInt(issue.get("customfield_17704")) -->
Also tried
<!-- @@Formula: a = Integer.parseInt(issue.get("customfield_17703").trim())
b = Integer.parseInt(issue.get("customfield_17704").trim())
return
a/v;
-->
PS: Addition and multiplication operands work fine for the same code inside the formula
This is working in my jira instance
(issue.get("cf01") != null ? issue.get("cf01") : 0) / (issue.get("cf02") != null ? issue.get("cf02") : 0)
normally, errors are shown in the jira log.
sometimes they give a really good hint what's not working with the script
Thank you so much. I found the solution from the logs and fixed it. Really appreciate your help
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.