I'm attempting to create a Behaviour for the creation of an Issue in both Jira and via the portal.
However, I need to manage the screen tabs in Jira, any attempt to hide any tabs in anyway causes the behaviour to not work on the portal.
Hide all Fields and Tabs
fieldScreen.tabs*.fieldScreenLayoutItems*.each{getFieldById(it.fieldId).setHidden(true).setReadOnly(true).setRequired(false)}
getFieldScreen().tabs.each{hideTab(it)}
Then set the required fields and show the tab
if (issueRequestType == 'Installation') {
getFieldByName('Client').setHidden(false).setReadOnly(false).setRequired(true)
.setDescription('Select from Clients')
getFieldByName('Installations').setHidden(false).setReadOnly(false).setRequired(true)
.setLabel('Installation')
.setDescription('Select aninstallation')
}
showTab('Summary')