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.
Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!
Register todayOnline 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.