Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How make field mandatory based on selected value of other custom field

Edited
michal_tatulinski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Nov 14, 2023

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.

2 answers

1 vote
Kristian Walker _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 16, 2023 • edited

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

0 votes
Sanjen Bariki
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.
Nov 14, 2023

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events