Filter View By Assign To
nsoonhui - November 7, 2009 - 12:57
| Project: | Project issue tracking |
| Version: | 6.x-1.x-dev |
| Component: | Views integration |
| Category: | support request |
| Priority: | normal |
| Assigned: | dww |
| Status: | closed |
Jump to:
Description
When I log into my Project Issue page, I want to have a list of issues that are assigned to me. Currently I can only do this by filtering all the case that are assigned to me.
Is there anyway to configure the project issue so that by default, the /project/issues/user link will automatically show all the issues that are assigned to me?

#1
It's slightly confusing since the issue views need to make heavy use of the powerful concept of "Relationships" in views. So, if you're looking for a "Project issue: Assigned" filter or argument, you're out of luck. Instead, you're really filtering on the user id, you just want to use the "Assigned user" relationship. You have a few options, depending on how you want this to behave:
A) Remove the existing "Node: User posted or commented" argument, and add a new argument "User: UID" that uses the "Assigned user" relationship. So, then "my issues" would only show stuff assigned to the user in the URL, period.
B) Keep the current argument, but add an exposed filter for "User: Current" again using the "Assigned user" relationship. Then, it would show all issues you wrote or commented on, but there'd be a checkbox or something to toggle if you only want the ones assigned to yourself. This would be slightly confusing in cases where someone was viewing the "my issues" page for other users, since it'd still be filtering those by the _current_ user, not the user from the URL argument. It'd be nice if the filter could get the UID from the active argument, but that's a bit out of scope for what Views2 can do right now.
#2
Your answer solves my problem.
Thank you.