Hi
Hi @Jemima James ,
in order to do that you need to setup a behaviour provided by ScriptRunner.
In particular you need to get your dropdown value, perform a check on that value and make the other field mandatory.
Here a useful link https://scriptrunner.adaptavist.com/latest/jira/behaviours-overview.html
Hope this helps,
Fabio
I had already gone through the link before. But to get to my expected outcome, the available configurations dont help.
Seems I need to write a script but I do not know how to do that in groovy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jemima James ,
you can add the following code associated to your behaviour for project/issuetype and to dropdown field
def dropdownCF = getFieldByName("YOUR_DROPDOWN_FIELD_NAME");
def fieldCF = getFieldById("YOUR_FIELD_NAME");
String dropdownValue = dropdownCF .getValue();
if("YOUR_VALUE_FOR_MANDATORY_CHECK".equalsIgnoreCase(dropdownValue )){
fieldCF.setRequired(true);
} else {
fieldCF.setRequired(false);
}
Hope this helps,
Fabio
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.