Forums

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

Show/Hide Custom Fields Based on Select List Field Options Using Scriptrunner in Jira Cloud

Digvijay Singh Gehlot
Contributor
September 4, 2025

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

2 answers

1 vote
Trudy Claspill
Community Champion
September 4, 2025

Hello @Digvijay Singh Gehlot 

I think this YouTube video from Adaptavist has what you seek.

https://www.youtube.com/watch?v=9MNsjBm9New

 

0 votes
Vitalii Rybka
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 4, 2025

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.

Trudy Claspill
Community Champion
September 5, 2025

@Vitalii Rybka 

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.

https://docs.adaptavist.com/sr4jc/latest/features/behaviours/behaviours-supported-fields-and-products#issue-view-supported-fields

Suggest an answer

Log in or Sign up to answer