I have created field on the department table called email. When I will the select the department on the change management notification must get triggered for that department . I have created link defination also to pass the value.
The below condition is not working.
jscall( "htmlemailtemplates.getMailBody", "ChM Change Open", $L.file, $L.file.save,dept.name in $L.file,email in $L.file).