Forums

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

Show/ Hide Custom Fields based on Checkbox options using Scriptrunner Cloud Behavior in Jira Cloud

Digvijay Singh Gehlot
Contributor
August 20, 2025

Hi Community,

I want to show/ hide 3 custom fields (Text type, Select List (single choice) type, and checkbox type) based on another Checkbox field options on Issue View screen - using Scriptrunner cloud behavior - in Jira Cloud.

Please provide a sample code of Scriptrunner behavior on how to achieve the above on Issue View screen - it would be a great help for reference.

Thanks

1 answer

0 votes
Kristian Walker (Adaptavist)
Community Champion
August 21, 2025

Hi Digvijay,

I can confirm that behaviours for Jira cloud supports making fields hiding and showing fields based on another value. 

We have an example script located here which shows how to do this and this could be modified to achieve your use case.

I hope this information helps.

Regards,

Kristian

Digvijay Singh Gehlot
Contributor
August 21, 2025

Hi @Kristian Walker (Adaptavist) 

Thank you for your message.

Could you also provide a sample code on how to hide/show custom fields based on a Checkbox field options using Scriptrunner behavior on Jira Cloud - View screen?

Kristian Walker (Adaptavist)
Community Champion
August 22, 2025

Hi Digvijay, 

I have created a small example here that runs on the Issue View and the On Change event. It hides values when a certain value is selected in a checkbox field and makes them visible when a different value is selected. 

You can use this as a guide to help create the script that you require. 

I hope this information helps.

Regards,

Kristian

Suggest an answer

Log in or Sign up to answer