let us say the incidents X,Y,Z are linked to an
1. external ticket "E" with a relation "relates to" or "implemented by"
OR
2. internal ticket "I" wiith a relation "duplicates" or "duplicated by"
how to search for X,Y,Z based on the status of "E" and "I"