Hide Smart Hierarchy on Issue View Using ScriptRunner

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:

  1. Navigate to ScriptRunner → UI Fragments.

  2. Click “Create UI Fragment” → Select “Hide system or plugin UI element.

  3. In the “Hide what” field, select ta-smart-hierarchy:smart-hierarchy-issue-panel .

  4. In the “Condition” field, define the logic for when you want to hide the Smart Hierarchy panel.

image-20250526-084417.png

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.

 

  1. Save changes ✅