def issue = event.issue as issue in groovy. A error saying event is not declared for class is coming. I dont know what the problem is. I am trying to get the current issue key which is created after create issue event.
You need to tag your question with scriptrunner if you expect the vendor to help.
You're trying to cast 'event.issue' as an Issue but you haven't imported the Issue class. So the error is obvious.
to the top of your script and it will no longer cause an issue.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event