When a patch is send to Gerrit with a header such as Bug: T12345, Gerrit keeps track of the bug tracker and let us search for any change having that bug id. The search query is simply: bug:T12345.
For Phabricator task, maybe we could add a link to the Gerrit search? That will ease finding patches, the URL would be:
https://gerrit.wikimedia.org/r/#/q/bug:T12345
It might be annoying though when no Gerrit change is associated with a task.