The goal would be to track the status of an issue (somewhat) independently for different branches.
When creating a bug task, you specify the branches that are relevant, and in each branch it would come up as open.
That way, one can check if a problem is fixed in all relevant branches. This would require interpreting branching and merging along with the task <-> commit relation, I would imagine.