Remove Share with Everyone Option on Filters

Is it possible to remove the share with everyone option on Filters in JIRA V4.2.1?

I have tried editing the edit-share-types.jsp and select-share-types.jsp files but it does not seem to work.

2 answers

1 accepted

1 vote
Accepted answer

You should modify the edit-share-types.jsp under /template/aui.

Modify lines from 22- 26 as:

<select id="share_type_selector">
<ww:iterator value=".">
<ww:if test="./shareTypeLabel != 'Everyone'">
<option value="<ww:property value="./shareType"/>"><ww:property value="./shareTypeLabel"/></option>
</ww:if>
</ww:iterator>
</select>

Hi Jobin, Can you let me know the exact file path to this? I cannot seem to find folder aui? I had edited this file under at /atlassian-jira/template/standard/ Thanks, Gena
/atlassian-jira/template/aui/edit-share-types.jsp
Thanks Jobin, worked perfect!

Thanks for the idea! We (hopefully) improved the implementation on Jira 6.1 by checking the id and not the translated value, by removing the Add Everyone button, and by selecting project as default (instead of group):

&lt;select class="select medium-field" id="share_type_selector"&gt;  
    &lt;ww:iterator value="."&gt;  
        &lt;ww:if test="./shareType != 'global'"&gt;  
            &lt;option  
                value="&lt;ww:property value="./shareType"/&gt;"  
                &lt;ww:if test="./shareType == 'project'"&gt;selected&lt;/ww:if&gt;  
            &gt;&lt;ww:property value="./shareTypeLabel"/&gt;&lt;/option&gt;  
        &lt;/ww:if&gt;  
    &lt;/ww:iterator&gt;  
&lt;/select&gt;  
&lt;ww:iterator value="." status="'typeStatus'"&gt;  
    &lt;span id="share_&lt;ww:property value="./shareType"/&gt;" &lt;ww:if test="@typeStatus/first == false"&gt;style="display:none"&lt;/ww:if&gt;&gt;  
        &lt;ww:property value="./shareTypeEditor" escape="false"/&gt;  
        &lt;ww:if test="./addButtonNeeded == true"&gt;  
            &lt;ww:if test="./shareType != 'global'"&gt;  
                &lt;span class="addShare" id="share_add_&lt;ww:property value="./shareType"/&gt;"&gt;&lt;span class="icon jira-icon-add"&gt;&lt;/span&gt;&amp;nbsp;&lt;ww:text name="'common.sharing.add.share'"/&gt;&lt;/span&gt;  
            &lt;/ww:if&gt;  
        &lt;/ww:if&gt;  
    &lt;/span&gt;  
&lt;/ww:iterator&gt;

The following thread (back to the forum) has a workaround for this issue: http://forums.atlassian.com/thread.jspa?messageID=257359151&#257359151

Thanks Jo-Anne, Unfortunately,I had tried this before and it does not seem to work with V4.2.1. I edited the files, deleted the work folder and restarted JIRA. But the manage filters page still looks the same.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Sunday in Feedback & Announcements

How do you analyze GC logs, thread dumps and head dumps?

Hi awesome community!  In this article, I would like to describe the one of the toolset (service) for the analyze some problems on different Java-based instances, of course, as Atlassian admini...

121 views 0 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you