Getting the HttpServletRequest in @EventListener method call

Hi, I’m trying to get the HttpServletRequest while processing an event (EventListener). I have been using:

ServletActionContext.getRequest()

but this is null for the issue created event, which is one of the events I need it for. I don’t know if it is relevant but issueEvent.getChangeLog() also returns null for issue creation as well.

I need the HttpServletRequest to get the cookies

Thanks
Paul

In case anyone else has this problem I found the following command in the source code. It has the request for changes and new issues

ExecutingHttpRequest.get()

Thanks
Paul

1 Like