Jira Server session empty for creating issue event


Can you please help me with how to get the session when creating an issue?
I try to get it may ways (last one):


And it’s not working for when creating an issue from the image (it’s empty):

Is there a way of getting the session from here?
I try to get it from inside the event listener:

    public void onIssueEvent(IssueEvent issueEvent) {}

Thank you very much!