How to clear the options of customfield on transition screen using behavior groovy script.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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('')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's not working for dropdown single select field, but this method working for text fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
def field = getFieldByName('Your Field Name')
field.setFormValue(-1)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.