Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ETA for ScriptRunner compatible with Jira 8.8.0

Sam
Contributor
March 30, 2020

Hello, I was wondering if you have an ETA for a release of ScriptRunner that will be compatible with Jira Server 8.8.0?

1 answer

Suggest an answer

Log in or Sign up to answer
1 vote
PD Sheehan
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 Champions.
August 15, 2022

Try it like this:

def MultiselectList = getFieldById(getFieldChanged()) // I tried this alternate statement as well -getFieldByName("Name")
def MultiselectListValue =MultiselectList.value as List
def hide = MultiselectListValue.contains("ABC")
def fieldsToHide = ['Environment', 'Application']
fieldsToHide.each{fieldName->
getFieldByName(fieldName).setHidden(hide)
}
Priyanka Nimbalkar
August 17, 2022

It's not working somehow , i want these two drop to be hidden when value is selected as "ABC" in multi select field other wise it should be visible as usual.

Does it matter if the multi select field is project specific ?

PD Sheehan
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 Champions.
August 17, 2022

You can try to output some information on your screen for debugging purposes:

def MultiselectList = getFieldById(getFieldChanged()) // I tried this alternate statement as well -getFieldByName("Name")
def MultiselectListValue =MultiselectList.value as List
def hide = MultiselectListValue.contains("ABC")
MultiselectList.setHelpText("Value detected: $MultiselectListValue (${MultiselectListValue.getClass()}) hide=$hide")
def fieldsToHide = ['Environment', 'Application']
fieldsToHide.each{fieldName->
getFieldByName(fieldName).setHidden(hide).setHelpText("Field $fieldName identified. Attempting to set hidden=$hide")
}

What happens when you set that as your server-side script for the Multi Select field?

TAGS
AUG Leaders

Atlassian Community Events