Fix #1538: tasks not currently linked to events (but to incidents)