If ticket 1 is required for 2 and 3 and ticket 3 has a Gantt with "goal=self", ticket 1 doesn't show up.
MasterTickets? doesn't create a real relation, at least not in ticket_custom. There I see entries like:
165 | blocking | 166, 167
166 | blocking | 167
168 | blocking | 167, 169
So the query which does:
cursor.execute("SELECT t.id "
"FROM ticket AS t "
"LEFT OUTER JOIN ticket_custom AS p ON "
" (t.id=p.ticket AND p.name='%s') "
"WHERE p.value IN (%s)" %
(field, n_list))
nodes = ['%s' % row[0] for row in cursor]
can't work. I either need a like query or to query the master tickets table.