You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi.
I have customfield_10055 radio button type. It have six possible answers.
If user select A, I want make customfield_10054 mandatory.
How do that using ScriptRunner Behavior?
I tried to use example from https://docs.adaptavist.com/sr4jc/latest/features/behaviours/example-behaviour#make-field-required-when-select-list-value-selected but with no luck.
Edit:
We use Jira Cloud version.
Hi Michal,
Thank you for your question.
I can confirm that scriptRunner for Jira Cloud now supports the radio buttons field and these have the key of com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons.
This means if you replace the key for select list fields in the example script with this key and map the behaviour to the OnChange event it will work.
Also, you should then specify your field values inside the script.
I have tested this out using Radio buttons as mentioned above and can confirm this works.
I hope this information helps.
Regards,
Kristian
Hi @michal_tatulinski ,
Welcome to Atlassian community!
Please find the below some solution link.
Check and let me know, did you received any responce on it.
Regards,
Sanjen
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.