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')If the script makes any changes the tabs, if does not process, no errors are shown in the log.
Is there a way in behaviour to distinguish where the issue is being raised from?
Or do I need to have two separate Behaviours