Hi Robert,
I'm not sure exactly what query you're looking for. There are four general query functions that are concerned with querying relations:
- is_relation_of(objectname)
- has_relation(objectname)
- is_no_relation()
- has_no_relation()
where
relation is the name of the relation, and where
objectname is either a four-part objectname or a query function that finds such an object. For example, if you know a task identifier, you can use the
task query function to get its four part objectname.
Specific examples:
- is_fix_of(task('A#123' )) queries for all objects with a relationship named fix from task A#123. In other words, it would find the bad tasks fixed by task A#123.
- has_fix(task('A#123' )) queries for all objects with a relationship named fix to task A#123. In other words, it would find the good tasks that fix bad task A#123.
- is_no_fix() queries for all objects that have no relationships named fix from them. In other words, it would find tasks that are not fix tasks.
- has_no_fix() queries for all objects that have no relationships named fix to them. In other words it would tasks that are not bad tasks fixed by one or more fix tasks.
These are all described in the
Learn more about...Query expressions...functions chapter of the CLI help.
So once you know the name of the relation involved, you can apply these general relation query functions to almost any situation.
Hope that helps,
Regards,
David.