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.
Is it possible?
Thank in advance and best regard
Ben
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>
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.