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.
I don't get it... why would you need to use a behaviour function in a listener? If this is in a screen, using behaviours shouldn't be enough?
Maybe I a have a low technical knowledge to understand your question ^^
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.