so i am working on to find a solution to this which is,
ScField = check boxes
A,B,C,D,E,F
TmField - Muliple issue picker
and depending on the option i chose, i created subtasks based on the selection of ScField.
So, If i choose only "c", the TmField should become optional, if i choose the rest of them along with "c"or without "c" . the TmFIeld should become mandatory.
I used this script in behaviours in ScField
def ScField = getFieldById(getFieldChanged())
def TmField = getFieldbyId("customfield_11900")
def SAC = ScField.getValue() as String
TmField.setRequired(!(SAC == "c"))
The Problem i am having is even though when TmField becomes mandatory and has a value in it. when i tried to create a issue. it says "Please enter a value in this field".