Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Setting null in a User Picker with a Behaviours?

Kay Domschke March 11, 2022

Hi there,
We want to take over fields from an issue picker with the Scriptrunner via Behaviors. That works fine too. Unfortunately we have some issues where user picker fields are empty.
So we have to make a user picker field empty from a behavior if there are no values.

Filling is no problem with setFieldValue(). How can we delete the value again?

We tried the following:
1.) ....setFieldValue("")
2.) ....setFieldValue('')
3.) ....setFieldValue(null)
4.) ....setFieldValue(-1)
5.) ....setFieldValue(0)

Nothing helps

We look forward to every constructive hint / help / solution

1 answer

0 votes
Derek Fields (RightStar)
Community Champion
March 11, 2022

setFieldValue(null) is the correct call. I have done some testing on my environment and you are correct - it doesn't work. I would open a ticket with Adaptavist.

Suggest an answer

Log in or Sign up to answer