1
0
-1

Hello Everyone.

I would like ask you guys about possibility to make search-request-view visible or not in menu.

I know I can set state in XML descriptor, but I need set state depends logged user belongs to group or not.

How can I solve it?

Best regards

Mik

    CommentAdd your comment...

    1 answer

    1.  
      2
      1
      0

      Hi,

      it is not possible to add a condition to search-request-view, something like:

      <search-request-view key="...
      <condition class="com.atlassian.jira.plugin.webfragment.conditions.UserIsAdminCondition" />
      </search-request-view>

      not work.

      You must probably write own (overwrite existing) search plugin module and integrate user/group login into it. Other solution is used some javascript hack to disable links.

      1. Mik

        Hi. Thanks for answer.

        Exectly, <condition class="com.atlassian.jira.plugin.webfragment.conditions.UserIsAdminCondition" />

        not works.

        I have solved problem by modification header.jsp (show links depending on user/groups)

        Best regards

        Mik

      CommentAdd your comment...