I don't want to run behaviours when I edit issues.
But I don't know how to get state.
help me plz...
You should write like this:
if(getAction() !=null) {
//your code here
}
You can find more info on getAction method here:
https://scriptrunner.adaptavist.com/latest/jira/behaviours-api-quickref.html#_getaction
Thanks
create issue returns two things : action name and null.
but It was run regardless.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just checked and the Create issue event always returns Create. Could you provide logs and your final script?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
previously confirmed script is simple.
just
log.debug(getAction())
it was displayed two things.
nothing has been touched, but It is now displayed as one.
It was very kind of you to help me. Thanks.
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.