Hide Smart Hierarchy on Issue View Using ScriptRunner
for data center
You can use ScriptRunner to conditionally hide UI elements in Jira, such as the Smart Hierarchy panel, based on criteria like issue type, project, or user role. This allows you to tailor the visibility of the Smart Hierarchy add-on to specific teams or workflows.
Steps:
Navigate to ScriptRunner → UI Fragments.
Click “Create UI Fragment” → Select “Hide system or plugin UI element.
In the “Hide what” field, select
ta-smart-hierarchy:smart-hierarchy-issue-panel
.In the “Condition” field, define the logic for when you want to hide the Smart Hierarchy panel.
To hide Smart Hierarchy for certain issue types, use the following script:
// Define the issue types you want to hide elements for
def hiddenIssueTypes = ["Task", "Story", "Bug"] // Change this list based on your needs
def issueType = issue.getIssueType().getName()
return !hiddenIssueTypes.contains(issueType)
This script will hide the Smart Hierarchy panel for all issues of type Task, Story, and Bug. You can update the list to include other issue types as needed.
Save changes ✅