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.
I don't understand the goal...
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.