I have a certain user which need to be pre-populated on fixed transitions in the assignee field. I tried using the behaviours plugin and the following code but it is not working. Neither it is giving any error in the logs.
FormField assi = getFieldById("assignee")
assi.setFormValue("username");
What am I doing wrong here?