Skip to main content
Example scripts
arrow icon
To homepage
Jira
Cloud icon
Cloud

Focus or hide screenTabs conditionally based on create or issue view

Features
Behaviours
Created 4 month(s) ago, Updated 2 day(s) ago
App in script
ScriptRunner For Jira
ScriptRunner For Jira
by Adaptavist
Compatibility
compatibility bullet
Jira
Language |
typescript
// Retrieve the "Admin" screenTab by its ID
const adminTab = getscreenTabById("10083"); // Replace with your actual screen tab

// Retrieve the "General" screenTab by its ID
const generalTab = getscreenTabById("10000"); // Replace with your actual screen tab 

// Retrieve the "Complete" screenTab by its ID
const completeTab = getscreenTabById("10084"); // Replace with your actual screen tab 

// Focus on the "Admin" screenTab if it exists
adminTab?.focus();

// Hide the "General" screenTab if it exists
generalTab?.setVisible(false);

// Hide the "Complete" screenTab if it exists
completeTab?.setVisible(false);
Having an issue with this script?
Report it here