Skip to content

Add --assigned filter to maniphest search with OR logic support#134

Merged
holmboe merged 2 commits intomasterfrom
feature/assigned-filter
Mar 2, 2026
Merged

Add --assigned filter to maniphest search with OR logic support#134
holmboe merged 2 commits intomasterfrom
feature/assigned-filter

Conversation

@holmboe
Copy link
Contributor

@holmboe holmboe commented Feb 20, 2026

Summary

Implements support for filtering Maniphest tasks by assignee using the --assigned parameter. Users can now filter tasks assigned to themselves using @me or specify other users by username. Supports OR logic with comma-separated values for filtering by multiple assignees.

Features

  • Single assignee filtering:

    • --assigned @me - Filter tasks assigned to current authenticated user
    • --assigned username - Filter tasks assigned to specific user
  • Multiple assignees with OR logic:

    • --assigned @me,user1,user2 - Filter tasks assigned to ANY of the specified users
    • Comma-separated syntax for OR logic (similar to --tag filter)
  • Works with all other filters:

    • Compatible with --tag, --status, --priority, date filters, etc.
    • Example: --assigned @me,user1 --tag dynatron --status 'not:in:Resolved'

Implementation Details

  • Uses Phabricator API's user.whoami() to resolve @me to current user's PHID
  • Resolves usernames to PHIDs using existing _resolve_user_phid() method
  • Passes PHID list to maniphest.search API's assigned constraint
  • API natively supports OR logic for multiple PHIDs in assigned filter
  • Applied to all three query paths in task_search() method

Examples

# Tasks assigned to me
phabfive maniphest search --assigned @me

# Tasks assigned to me within a specific project
phabfive maniphest search --assigned @me --tag MyProject

# Tasks assigned to me OR user1 that are not resolved
phabfive maniphest search --assigned @me,user1 --tag dynatron --status 'not:in:Resolved'

# Multiple users
phabfive maniphest search --assigned user1,user2,user3

Testing

  • Help output verified with updated documentation
  • Implementation ready for testing against Phabricator/Phorge instances

Related

Closes any related issues (if applicable)

🤖 Generated with Claude Code

holmboe and others added 2 commits March 2, 2026 13:24
Implements support for filtering Maniphest tasks by assignee using the
--assigned parameter. Users can now filter tasks assigned to themselves
using "@me" or specify another user by username.

Features:
- New --assigned=USER parameter in maniphest search command
- Special "@me" syntax that resolves to the current authenticated user
- Support for filtering by any username
- Works with all other search filters (tags, dates, columns, etc.)
- Adds assigned constraint to all maniphest.search API query paths

Examples:
  phabfive maniphest search --assigned @me
  phabfive maniphest search --assigned @me --tag MyProject
  phabfive maniphest search --assigned username --updated-after 7

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Extends the --assigned filter to support multiple assignees with OR logic
using comma-separated values (e.g., --assigned @me,user1,user2).

Changes:
- Parse comma-separated usernames in --assigned parameter
- Resolve each username (including @me) to PHID individually
- Pass all PHIDs as a list to the Phabricator API assigned constraint
- API natively supports OR logic for multiple PHIDs in assigned filter
- Updated help text and examples to document OR logic usage

Examples:
  phabfive maniphest search --assigned @me,user1
  phabfive maniphest search --assigned @me,user1 --tag dynatron --status 'not:in:Resolved'

This allows users to efficiently find tasks assigned to any of multiple
users without making separate queries.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@holmboe holmboe force-pushed the feature/assigned-filter branch from 61dba73 to 2c7cfdd Compare March 2, 2026 12:51
@holmboe holmboe merged commit 4604141 into master Mar 2, 2026
4 of 15 checks passed
@holmboe holmboe deleted the feature/assigned-filter branch March 2, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants