@achystoprudov , @markusschulte
I have another question, it is regarding the same context so asking it here.
In my atlassian-plugin.xml (above) my web-item has a link which is associated with the action viewRobotReport
When I switch to a job for which the
RobotReportViewCondition evaluates to false, I can still set the html report rendered by my freemarker template /templates/viewRobotReport.ftl
From the logs I could see that the link action called is instantiated first (which returns success) and then the condition class (RobotReportViewCondition) is instantiated which returns false. So I end up in a job which does not show the web-item in the tab but shows the report rendered by the freemarker template.
From what I understand, this is because the web-item link action gets executed first and then the web-item display condition gets evaluated later.
This behavior I find strange.
How can I correct this ?