I want to show/Hide a field(multi line text box) based on option selected in multi select field. I am using the below code but this only hides the "multi line text box" but never shows-
@BaseScript FieldBehaviours behaviours
def reasonForBlock = getFieldById("customfield_11842") //
def flaggedField = getFieldById("customfield_11829") //
def selectedOption = flaggedField.getValue() as String
log.debug "Selected option: $selectedOption"
Can someone help?
Hello @Priyanka khare
I had tried to run your script, and it's working fine on my end.
Please correct me if I got you wrong, I understand that you wish only to show the field while the "Other" option was selected on the multi-select field.
May I check if the multi-line text box will never show when you select the "other" option on the multi-select field?
Please make sure that you apply your Behaviour script as a server-side script to detect the changes everytime.
Hello @Sophia Chen ,
To run this script, you should need to install ScriprtRunner in your Jira.
Like I mentioned, please make sure that you apply this script as a Behaviour server-side script.
I would like to suggest you look at this document to understand how the script will work with Behaviour.
I hope this helps. :)
Hi community 👋, Here is another monthly roundup of the partner-organized events in July 2022. If there is any event missing please let me know in the comments below 🙏 If you're looking for Atla...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events