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.
I just checked and the Create issue event always returns Create. Could you provide logs and your final script?
previously confirmed script is simple.justlog.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.
It looks like you're new here. Sign in or register to get started.