Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding report/workload menu panel

Benjamin Löffler April 13, 2018

Hi together,

I'm new in using Jira help desk and have a question I couldn't find in the manual.

I want to hide the "report" menu point in the main menu from the help desk for Service Desk

agents.jira.PNG

Is it possible?

 

Thank in advance and best regard

Ben

2 answers

0 votes
Jan-Henry Bolk July 7, 2020

Hello,

does it still work in more recent versions of the JD?

When I enter this short part to announcement banner nothing happens...

 

<script type="text/javascript">
$(function() {
AJS.$("[data-link-id='com.atlassian.servicedesk.project-ui:sd-project-sidebar-reports']").hide()
});
</script>
0 votes
Tzu Hau Chai
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 15, 2018

You can try adding this javascript to the announcement banner, tested on SD 3.10

<script type="text/javascript">
$(function() {
AJS.$("[data-link-id='com.atlassian.servicedesk.project-ui:sd-project-sidebar-reports']").hide()
});
</script>
Benjamin Löffler April 16, 2018

Thank you very much, that works.

But now, no one sees the menu button, but administrators or special users should be able to see it.

Is that also possible?

Tzu Hau Chai
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 16, 2018

If you only have a few specific users, you can use this:

<script type="text/javascript">
$(function() {
if (AJS.params.loggedInUser != "username1" && AJS.params.loggedInUser != "username2"){
AJS.$("[data-link-id='com.atlassian.servicedesk.project-ui:sd-project-sidebar-reports']").hide()
}
});
</script>

 it gets more complicated if you want to filter based on a group of users: https://community.atlassian.com/t5/Answers-Developer-Questions/how-to-check-if-the-login-user-is-a-jira-administrator-using-a/qaq-p/503347

David Juan Tudela Berges
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 12, 2018

Be careful using javascript in the banner, it can cause problems in other plugins. We used Javascript in the banner and we had performance problems in JIRA.

Like Johannes likes this

Suggest an answer

Log in or Sign up to answer