How to make search-request-view Conditionable ?

Mik March 11, 2012

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

1 answer

1 vote
Radek Kantor
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 11, 2012

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.

Mik March 12, 2012

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

Suggest an answer

Log in or Sign up to answer