I have an issue-type of "Task" and it shares the same workflow as bug, epic and story.
I have this cascading field and i only want both fields (in cascading CF) to be required only in Task issue type not in bug, story and epic.
I have a piece of code that i added as a validator on create (workflow).