Hide SLAs section from View screen

Lan Anh September 10, 2024

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

image.png

2 answers

1 accepted

0 votes
Answer accepted
Rodrigo Martinez
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 17, 2024

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

0 votes
Manoj Gangwar
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 10, 2024

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

Eddy KENTSA November 19, 2024

Hi @Manoj Gangwar : I don't the option "Issue View" when I click on a particular request type. Could you share screenshot please ? I am facing the same issue as @Lan Anh !

Thx

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events