Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×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
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
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.