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
Hi @Fabio Racobaldo _Catworkx_
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 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);}
It looks like you're new here. Sign in or register to get started.