-
Suggestion
-
Resolution: Duplicate
-
None
-
None
-
1
-
Feature Request
Would like to request for a feature where administrators would have access to restricts groups to show up under share filters and share dashboard option .
Basically, the user would like to request for a feature where they would have access to restrict to show groups which are configured for application access. Which means that Jira should show all groups of the user where the user is member of it except global groups which are configured for application access
Workaround
Add this to your announcement banner
<script type='text/javascript'> //Workaround for JRASERVER-71670 AJS.$(function() { function killNodes() { //Add Groups to remove here AJS.$("select[name='groupName'] option[value='jira-software-users']").remove(); } var urlPath = AJS.$(location).attr('pathname'); if (urlPath.toLowerCase().indexOf("editsubscription") >= 0 || urlPath.toLowerCase().indexOf("viewsubscriptions") >= 0) { killNodes(); } const targetNode = document.getElementById('jira'); //body element const config = { attributes: false, childList: true, subtree: true }; const callback = function(mutationsList, observer) { // Use traditional 'for loops' for IE 11 for(const mutation of mutationsList) { if (mutation.type === 'childList') { killNodes(); } } }; const observer = new MutationObserver(callback); observer.observe(targetNode, config); }); </script>
Important notes on workaround
- If you have more groups than just jira-software-users that you wish to block, then please duplicate the line and change the group name as desired:
AJS.$("select[name='groupName'] option[value='jira-software-users']").remove();
- This fix was tested on Jira 8.5.6, and is not guaranteed to work on other version of Jira. Having said that, unless there is a major change to this feature, it will probably work.
- is duplicated by
-
JRASERVER-43800 Hide groups from Filter Subscription
- Gathering Interest
- relates to
-
JRASERVER-61452 Restrict groups listed in Filter Subscription
- Closed