Example scripts
To homepage
Jira

Focus or hide screenTabs conditionally based on create or issue 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