Is there a way to block a subtask transition based on both the parent issue type and the user role?
For example
If issue type is a subtask and parent issue type is STORY then disallow transition of subtasks from In Progress to DONE unless user has Project Role XYZ
If issue type is a subtask and parent issue type is TASK then allow transition of subtasks from In Progress to DONE if user has Project Role ABC
Edit: Had to fix my example.