-
Suggestion
-
Resolution: Fixed
NOTE: This suggestion is for JIRA Service Desk Cloud. Using JIRA Service Desk Server? 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.
- is related to
-
JSDSERVER-547 Customers to be directed to only Customer Portal without the ability to navigate back to JIRA
- Closed
- relates to
-
JSDCLOUD-62 Add Permission so user can only view Portal and not JIRA.
- Closed