Although there's a bit of special-case code in mail.inc to send email notifications to anyone assigned to an issue if they want "own issues" (see #237294: When I submit an issue the assigned person does not get a notification email. ), they still don't show up at "my issues" (e.g. /project/issues/user). Thanks to #921210: Fix performance of "My issues" this is a bit complicated, since we're going to want to somehow insert records into {tracker2_user} whenever an issue is assigned to that user. Otherwise, we're going to have to alter the query or something, since there's no great OR solution in Views2 and I'm not sure if we can switch to Views3 yet.

Even if there are technical hurdles to getting this done, I still think it'd be nice to support someday if possible (and I could use it on another Project* site I'm running) so I wanted to open an issue about it.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sirkitree’s picture

Would it be sufficient to simply add a new display tab for "issues assigned to me"?

catch’s picture

A new tab sounds good to me too. Stuff that's assigned vs stuffI posted on is a good split. While we can get that list with advanced search a tab would be handy, as would a block for the d.o dashboard.

dww’s picture

Why don't we just auto-flag the node/user pair for whomever is assigned to the given issue? Then they show up in your default views, tracker page, tracker and "Your issues" dashboard blocks, potentially RSS feed and in your inbox if you configure e-mail notifications, etc. I'm not 100% against a specific view/block just for assigned, but I'm not clear why we wouldn't want to just fold this into to primary follow workflow.

Related:
#34496: [meta] Add Flag module to allow users to subscribe/unsubscribe without posting a comment
#397458: Revamp mailing logic to leverage flag module
#1284244: Auto-flag when a user creates or comments on an issue
...

webchick’s picture

Title: Expand the notion of "my issues" to include assigned to you » Auto-flag when an issue is assigned to you.

I like that idea. The only people who should be able to assign stuff to you are fellow maintainers, so that makes a lot of sense.

dww’s picture

Yup, now that #34496: [meta] Add Flag module to allow users to subscribe/unsubscribe without posting a comment is so far along, this should be relatively easy to do. If someone wants to roll a patch, for now you should do it relative to the 34496-flag-integration branch. I'll reply here once that branch is merged backed into master (which should be 6.x-1.x but that's another story).

Thanks,
-Derek

dww’s picture

Assigned: Unassigned » dww
Status: Active » Needs review
FileSize
2.25 KB

This is fairly naive. All it does is whenever an issue is created or updated via a comment, we force a re-flagging to the currently assigned user (if any). That's basically all we need.

The one problem is if someone's assigned, then they unfollow manually, the moment anyone else replies, they'll be following again. If you really don't care, you need to unassign yourself first. That's probably what you should be doing, anyway, but I just wanted to raise it as my only concern about committing this patch.

Thoughts?

Thanks,
-Derek

dww’s picture

whoops, I cut and pasted the code comment but it should be different for the two code blocks.

dww’s picture

Status: Needs review » Fixed

I asked thrice in IRC for objections to this and only got +1s. Committed and pushed:

http://drupal.org/commitlog/commit/1894/75a73778954ff80a92c83bdfb18e0939...

webchick’s picture

NICE! Thanks!!

Automatically closed -- issue fixed for 2 weeks with no activity.