Hi,
I am trying to use an initialiser to set the Story Points field to 1 on the Create Issue action.
import com.atlassian.jira.component.ComponentAccessor
if (getActionName() != "Create Issue") {
return
}
def storypoints = getFieldById("customfield_10002")
int defaultVal = 1
storypoints.setFormValue(defaultVal)The above is not working, and I'm not sure why. When I remove the condition, it sets the value, but I need it to only set on Create.
Thanks!