Document toolboxDocument toolbox

To learn more about Tempo products, please visit our Help Center. For support, see our Support Portal.

Hide the Tempo panel on the Jira issue view with ScriptRunner

The Tempo timetracking panel is by default enabled in any Jira issue view. There might be cases where you want to hide this information for certain projects or specific user groups.

This can´t be achieved with native Tempo but if you have Scriptrunner installed you can achieve that with that tool.

The instructions below are taken from an Atlassian community post.

Instructions

  1. Go to Scriptrunner -> Fragments -> Hide System or Plugin UI element

  2. Hide What: → com.tempoplugin.tempo-core:tempo-issue-view-panel

  3. Conditions: ->

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.security.plugin.ProjectPermissionKey
def issueManager = ComponentAccessor.issueManager

def project = jiraHelper.project?.key
def user = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()

if (project != null){
def permissionManager = ComponentAccessor.getPermissionManager()
if(permissionManager.hasPermission(new ProjectPermissionKey("WORK_ON_ISSUES"), issue, user)){
return true
}
}
return false 

This script is without any guarantee to work with your Tempo version and you need to test it against your installed Tempo and Scriptrunner version.