Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-547

Customers to be directed to only Customer Portal without the ability to navigate back to JIRA

    XMLWordPrintable

Details

    • We collect Jira Service Desk 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

      NOTE: This suggestion is for JIRA Service Desk Server. Using JIRA Service Desk Cloud? See the corresponding suggestion.

      As per https://jira.atlassian.com/browse/JSD-62 feature, the Customers now are able to go directly to Customer Portal on login. However, they are still given the ability to navigate back to JIRA, even though they cannot do anything. But it will be much more elegant if the customers were only directed to Customer Portal without the ability to navigate back.

      Currently, the workaround for this is as per this comment, whereby you have to include the following script in Announcement Banner of the instance, which will direct the users back to Customer Portal anytime they try to navigate to JIRA:

      <script type='text/javascript'>
      function pageFormatNotLoggedInOrNoProjectAccess()
      {
          //All Pages
          AJS.$("#home_link").parent().hide(); //Hide Dashboards Menu
          AJS.$("#quicksearch").hide(); //Hide Search Box
          AJS.$("#system-help-menu").hide(); //Hide Help Menu
      
          //Agile Menu
          if (AJS.$("#greenhopper_menu").length) {
              AJS.$("#greenhopper_menu").parent().hide(); //Hide Agile menu
          }
          if (AJS.$("#greenhopper_menu_no_project").length) {
              AJS.$("#greenhopper_menu_no_project").parent().hide(); //Hide Agile menu
          }
      }
      
      function pageFormatNoProjectAccess()
      {
          //All Pages
          AJS.$("#view_profile").parent().parent().parent().hide(); //Hide Profile Menu Item
          AJS.$("#set_my_jira_home").parent().hide(); //Hide Profile Jira Home Menu
          AJS.$("#upm-requests-link").parent().hide(); //Hide Profile Marketplace Link
      
          //Dashboard
          if (window.location.href.indexOf("/secure/Dashboard.jspa") != -1 || window.location.href.indexOf("/secure/MyJiraHome.jspa") != -1) {
              AJS.$("#dashboard").hide(); //Hide Entire Dashboard Screen
          }
      }
      
      AJS.$(document).ready(function() {
          //All Pages
          AJS.$("#announcement-banner").css("padding", "0px"); //Remove Padding From Announcement Banner
      
          //Check Login & Service Desk Only User Status
          if (AJS.$("#header-details-user-fullname").length == 0) {
              //Format Page
              pageFormatNotLoggedInOrNoProjectAccess();
      
              //Redirect To Login Page
              if (window.location.href.indexOf("/secure/Dashboard.jspa") != -1) {
                  window.location = "/login.jsp";
              }
          } else {
              if (AJS.$("#browse_link").length == 0) {
                  //Format Page
                  pageFormatNotLoggedInOrNoProjectAccess();
                  pageFormatNoProjectAccess();
      
                  //Redirect To Service Desk
                  if (window.location.href.indexOf("/servicedesk/customer/<your service desk project key>") == -1) {
                      window.location = "/servicedesk/customer/<your service desk project key>";
                  }
              }
          }
      });
      </script>
      

      Note: this workaround isn't available for the OnDemand platform.

      Attachments

        Issue Links

          Activity

            People

              mfinch Marian Finch (Inactive)
              aalshargabi AlaA
              Votes:
              19 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Backbone Issue Sync