Hi all,
Does anyone can help me. I'm quite new in scripting...
I need to get a value from a calculated field (number field) and multiply it by 250
I'm using this for a field with the value "5":
import com.atlassian.jira.component.ComponentAccessor;
def customField = ComponentAccessor.getCustomFieldManager().getCustomFieldObject("customfield_10102");
def value = (String)issue.getCustomFieldValue(customField);
return value * 250
But the result is:
5.05
tks for any help
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.