How to get the current project in a project-centric-view (web-panel)?

I’ve learned something new. I still have the problem, but maybe, I am on the right way.

As far as I understand:

1. A web-panel needs a context-provider
Okay! It’s defined. My context provider is my java action class.

2. A java action class has function named "getContextMap"
Okay! My java class has such an function with 2 parameter. applicationuser and jirahelper. So I would expect, to get all nesseccary functions and parameters by using jirahelper.

3. jirahelper has 4 different constructors
Very interesting. It looks like, that every part of jira which provides a jirahelper class decides, if its providing

  • nothing
  • a HttpServletRequest
  • a HttpServletRequest and a project
  • a HttpServletRequest, a project and a additional Map.

I don’t know why, so I ask you for your help, is my jirahelper is not providing a project, even my web-panel is located as project-centric-view inside of an project.

Any ideas what the reason is? Maybe i missed some setting or code?

Kind regards