Disabling Build-in Time Tracking Features using Announcement Banner of Jira

You can limit who can use WorklogPRO by setting global permission “Use WorklogPRO”. In that case you can’t disable Jira’s build-in time tracking features using the disable module feature as explained here. Because, doing so, leaves users who can’t use WorklogPRO due to “Use WorklogPRO” setting without any time tracking options. In this case you can leave build-in time tracking features enabled and use the following script in “Jira Announcement Banner” to disable Jira’s time tracking features for the users who can access WorklogPRO. This prevents those users seeing duplicate time tracking features.

 

<script> var announcementBanner = document.getElementById("announcement-banner"); announcementBanner.style.display = "none"; function hideJiraTimeTrackingUI(e, context, reason, forth) { var wpTimeTrackingExist = document.getElementById("WorklogByUserPanel") != undefined; var wpLogWorkExist = document.getElementsByClassName("wp-add-worklog").length > 0; if (!wpTimeTrackingExist && !wpLogWorkExist) { return; } var worklogTab = document.getElementById("worklog-tabpanel"); if (worklogTab) { worklogTab.style.display = "none"; } var timetracking = document.getElementById("timetrackingmodule"); if (timetracking) { timetracking.style.display = "none"; } var logWorkLink = document.getElementById("log-work"); if (logWorkLink) { var parent = logWorkLink.closest("aui-section"); if (parent) { parent.style.display = "none"; } } var logWorkLinkInBoards = document.querySelectorAll(".aui-list-item-link.issueaction-log-work"); if (logWorkLinkInBoards.length > 0) { logWorkLinkInBoards[0].closest("li").style.display = "none"; } } document.addEventListener("DOMContentLoaded", function () { typeof JIRA !== "undefined" && JIRA.bind(JIRA.Events.NEW_PAGE_ADDED, hideJiraTimeTrackingUI); typeof JIRA !== "undefined" && typeof JIRA.ViewIssueTabs !== "undefined" && JIRA.ViewIssueTabs.onTabReady(hideJiraTimeTrackingUI); typeof JIRA !== "undefined" && JIRA.bind("GH.DetailView.updated", hideJiraTimeTrackingUI); }); </script>