Hi!
I want to set a customfield value based on another's field selection. I will copy the first letter of the selcted option of the customfield "Time to Benefit" (it's a number). Further, i want to calculate with this number later one, that's why I change the string to a double.
def cf = issue.getCustomFieldValue(componentManager.getCustomFieldManager().getCustomFieldObjectByName("Time to Benefit").substring(0, 1).toDouble());
def cd = issue.getCustomFieldValue(componentManager.getCustomFieldManager().getCustomFieldObjectByName("Value"));
issue.setCustomFieldValue(cd, cf);
Louisa