I would like to execute some Beahaviours field operations using my Script Listener :)
I would like to execute 'setError'.
I managed to make it work (compile?) using following imports
import com.onresolve.jira.groovy.user.FieldBehaviours
import com.onresolve.jira.groovy.user.FormField
import groovy.transform.BaseScript
@BaseScript FieldBehaviours fieldBehaviours
but I get null result when trying to access FormField obj
def formField = getFieldById(getFieldChanged())
or
def formField = getFieldById("customfield_10515")
then this following line won't execute correctly because of this null
formField.setError("some text")
Any help appreciated :)
Hello,
You can not execute behaviour Scriptrunner Api in a listener.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome!
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.
To show some info on screen to the user who is performing some event dispatching action, for example: moving issue,
It may not be possible, as Alexey stated :-/
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.