Example scripts
To homepage
Jira

Focus or hide screenTabs conditionally based on view
App in script

ScriptRunner For Jira
by Adaptavist
Compatibility

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