Hi Team,
Below is my requirement,
1. When i select a Checkbox custom field values as Yes, few field needs to be shown mandatory and few fields should be read-only
2. When uncheck the Custom field value, few fields should be mandatory and visible.
I tried with a script in Behaviour. But it is working in the create screen, but not in the transition screen.
Could you please help me here
Note: I have selected "On Load" and "On Change" checkboxes in Behaviour script runner. I tried with multiple combinations by checking only one checkbox also. Still no luck
@[deleted],
According to this post - https://docs.adaptavist.com/sr4jc/latest/features/behaviours#behaviours-supported-functions, ScriptRunner begaviors do not work on transition screens.
Is there any way we can achieve this requirement?
other than create screen, during edit or something like that?
Please help me with this Kian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yep, Atlassian doesn't yet support building Behaviours in screens other than "create"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can make fields required depending on the options selected using a scriptrunner validator, but you cannot optionally hide/show them.
The solution would be to write a validator that fails if a certain value is chosen and the other fields are not filled out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes understood Nic. But we have a tough requirement, when a field is selected, other fields should be mandatory.
please help me in understanding this - will it be achieved in any other way?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you please provide me sample validator scripts for the one you mentioned above
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@[deleted],
I would start with some of these resources:
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.