Our Project does not need this particular feature and the users do not see this in the older Jira version. But I notice this appears in the new Jira Data Center version and wonder if this section can be hidden to keep a consistent UI? As per screen cap below I have remove all the SLA settings in the Customer Portal, yet this section is still showing. Thanks!
--- Lan Anh
Hi @Lan Anh !
Thanks for raising this question here!
I'll share the same solution we discussed in the support ticket you opened with us so it helps more fellow Admins that may find this thread, too!
We just updated the article on How to customize Jira with JavaScript and CSS with this example. We invite everyone to read it through so they know the caveats of such customizations and how delicate they are (i.e. they may break on minor Jira upgrades even and require fixes by the Admins).
This is the code from the current "Example 5. Adding a new stylesheet conditionally":
<!-- COMPANY-NAME custom Javascript banner to hide the SLA panel for some Projects -->
<script>
try {
if (window.location.href.indexOf("/PROJKEY-") > 0) {
let sheetSLA = document.createElement("style");
sheetSLA.id = "COMPANY-NAME-custom-stylesheet-from-announcement-banner-001";
sheetSLA.innerHTML = '#sla-web-panel-react { display: none; }';
document.head.appendChild(sheetSLA);
console.info("[COMPANY-NAME custom JS banner] [INFO] SLA panel hidden");
}
}
catch (error) {
console.info("[COMPANY-NAME custom JS banner] [ERROR] " + error);
}
</script>
Replace "/PROJKEY-" by the respective project's key (keeping the slash and hyphen) and it should work. Also replace COMPANY-NAME respectively.
Cheers,
Rodrigo — from Atlassian Premier Support for Jira Data Center
Hi @Lan Anh ,
You can hide the SLA field from the view screen.
Go to the Project Setting> Request Types>Search for the particular request type and click on it.
After that Click on the Issue View option search for SLA remove it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.