Behaviours Plugin:Making a issue auto assign to a specify user depending on a customer field choosing a specify value entered in to the form by script
this is my script:
log.debug("--------------------This is to test Behaviours Logging----------------")
FormField formClient = getFieldByName("client")
FormField formassign = getFieldByName("assignee")
log.debug("----------------> " + formClient.getValue())
if (formClient.getValue()=="linux") {
formassign.setFormValue("hyqiu")
//log.debug("*********************** 2 > " + summary.getFormValue())
}
else {
formassign.setFormValue("exu")
}
I have got the value "liunux", but the logfile reports
/rest/com.onresolve.jira.plugin.Behaviours/1.0/behaviours/runvalidator.json [onresolve.jira.groovy.BehaviourManagerImpl] Returning map: [null:[setValue:hyqiu]]
and the issue does not be assigned to project leader.
could you help me on this ?
my jira is 5.4.1
thanks
Gary