Hi Community,
I want to show/hide multiple custom fields (text type, checkbox, select list (single/ multiple choices)) based on Select List (single choices) field's values on Issue View screen using Scriptrunner Cloud Behavior in Jira cloud.
Please provide a sample code of "changedField" logic when running On Change and On Load. It will a great help.
Thanks
Hello @Digvijay Singh Gehlot
I think this YouTube video from Adaptavist has what you seek.
https://www.youtube.com/watch?v=9MNsjBm9New
In Jira Cloud Scriptrunner, Behaviors are limited vs Server/DC you can’t fully hide/show fields, only set them required/optional or read-only; for onChange
you can check the select value and then use setHidden(true/false)
in code, but since it’s not fully supported in Cloud, the workaround is using Forms, Forge apps, or making fields read-only/required instead.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
On what are you basing your statement that using the setHidden() option is not fully supported in Cloud?
I'm not seeing any caveats listed for this functionality in the Issue Details View other than a few fields not being supported.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.