Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-71670

Restrict jira users groups with application access to be listed in Filter Subscription

    XMLWordPrintable

Details

    • 1
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              skaur@atlassian.com Saranjeet Kaur (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: