Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Create Issue Behaviour for Portal and Jira

David Harkins
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 3, 2024

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

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events