I wonder if I can assign an issue to someone with scriptrunner with a server side script in a behaviour
I tried
getFieldById(ASSIGNEE).setFormValue("gabriele")
but it's not working: is that possible only in post-function script and not in a behaviour maybe ?
Hi @gvidali
Behaviours will determine who fields on a form will behave. In your case you could only add as an assignee e.g. you, for a specific issue type etc. But this wouldn't restrict the user from changing the value of the assignee field. On the other hand, having a script on a post function, means that you "have the last word" on who the assignee is going to be. A user can choose whoever he/she want's during the creation of the issue, but when that transition will run and the post function will take place, then the assignee is going to be the user who you placed inside that post function.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.