I have one radio button YES/No If i am selected Yes then my checkbox should be mandatory in Jira
I don't understand the goal...
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.ComponentAccessorimport com.atlassian.jira.issue.Issueimport com.onresolve.jira.groovy.user.FormFieldimport org.apache.log4j.Category
if (cfValues['COTS Dependency'] == 'Yes') {cfValues['System Providing Service'] !=null}elsecfValues['COTS Dependency'] != 'Yes'
if (cfValues['COTS Dependency'] == 'Yes') {
cfValues['System Providing Service'] !=null}elsecfValues['COTS Dependency'] != 'Yes'
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}
done
It looks like you're new here. Sign in or register to get started.