Hello ;
I want to autofill the original estimate field if the priority is set .I used the following code , but its showing error (**) , What's wrong ???
import com.onresolve.jira.groovy.user.FieldBehaviours
import com.atlassian.jira.issue.fields.CustomField
**FormField Priority = getFieldByName("Priority")
**FormField OE = getFieldById("timetracking_originalestimate")
String Compl_Value = (String) formPriority.getFormValue()
if ( formPriority.getValue()==("Critical") )
{ formOE.setFormValue("24h")
}
else if ( formPriority.getValue()==("High") )
{ formOE.setFormValue("3d")
}
else if ( formPriority.getValue()==("Medium") )
{ formOE.setFormValue("24d")
}
else if ( formPriority.getValue()==("Low") )
{ formOE.setFormValue("48d")
}
else
{
formOE.setFormValue("0h")
}
At the American Academy of Family Physicians, siloed marketing teams faced delays and duplicate work. Kerrie Gottschalk shook things up by moving the department to Jira, streamlining processes, boosting visibility, and sparking stronger collaboration.
Read the story