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
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I have one radio button YES/No If i am selected Yes then my checkbox should be mandatory in Jira
Hi @ssabanam11 - Welcome to the Atlassian Community!
The only way I am aware of to do something like this is with the Behaviours add-on by ScriptRunner.
kindly share the script for check box .
Tried it below but not working
COTS Dependency -----It is radio button
System Providing Service --- it is checkbox
Description :- if someone select COTS Dependency Yes then check box field should be checked by user at least one option during create option
Script.
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
import com.onresolve.jira.groovy.user.FormField
import org.apache.log4j.Category
if (cfValues['COTS Dependency'] == 'Yes') {
cfValues['System Providing Service'] !=null
}
else
cfValues['COTS Dependency'] != 'Yes'
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.
kindly share the script for check box .
Tried it below but not working
COTS Dependency -----It is radio button
System Providing Service --- it is checkbox
Description :- if someone select COTS Dependency Yes then check box field should be checked by user at least one option during create option
Script.
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
import com.onresolve.jira.groovy.user.FormField
import org.apache.log4j.Category
if (cfValues['COTS Dependency'] == 'Yes') {
cfValues['System Providing Service'] !=null
}
else
cfValues['COTS Dependency'] != 'Yes'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If You is using a groovy post function, You could to do it with InvalidInputException class. Below an example if a != b.
import com.opensymphony.workflow.InvalidInputExceptionimport
if (a != b){
def error = new InvalidInputException("Error message")
throw error
}
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.