How to clear the options of customfield on transition screen using behavior groovy script.
Hi @Sambit Choudhury
I would actually use a postfunction to do this. Specifically the Clear field(s) [ScriptRunner] postfunction.
Thanks,
Tim
But I am trying to achieve this in "Edit Issue screen", for this I am not able to set post functions.
Well you could use a behaviour and this basic code will clear the field, but i'm guessing you will need to add more to it so that it only fires when you need. Just put in your field name.
def field = getFieldByName('Your Field Name')field.setFormValue('')
It's not working for dropdown single select field, but this method working for text fields.
It looks like you're new here. Sign in or register to get started.