Assign an issue with scriptrunner behaviour

gvidali February 26, 2019

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 ?

 

1 answer

0 votes
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 1, 2023

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events