Page MenuHomePhabricator

Allow Maniphest tasks to be queried by workboard Column PHID via SearchEngine

Authored by epriestley on Apr 13 2018, 1:28 PM.
Referenced Files
Unknown Object (File)
Sat, Jun 25, 11:30 PM
Unknown Object (File)
Wed, Jun 22, 1:45 AM
Unknown Object (File)
Sun, Jun 12, 10:52 AM
Unknown Object (File)
Sun, Jun 12, 7:32 AM
Unknown Object (File)
Fri, Jun 10, 4:22 AM
Unknown Object (File)
Mon, Jun 6, 9:06 PM
Unknown Object (File)
Jun 3 2022, 9:24 PM
Unknown Object (File)
May 28 2022, 4:21 PM



Ref T13120. See PHI571. Fixes T5024. This adds a "View as Query" action to workboard columns, which builds a query in Maniphest that has the current query constraints plus an additional constraint to select only tasks in the specified column.

This is a normal query and can be turned into a dashboard panel, added to a menu, edited, saved as a link, etc.

Much of the complexity here is that finding tasks in a given column isn't entirely straightforward because of how board layout works: when you create a task, it isn't immediately placed in columns. It's only actually added to the "Backlog" column on any boards when someone looks at the board.

To get the right behavior, we must do "board layout" for any queried columns before we can constrain results. This isn't enormously efficient, but should be OK for reasonable boards.

Test Plan
  • Used "View as Query" for normal columns and milestome columns, got appropriate queries in Maniphest.
  • Applied filters to the board (e.g., "Priorities: wishlist"), then used "View As Query" and had my custom filters respected.
  • Queried some large boards/columns with more than a thousand tasks, got results back within a second or so.

Diff Detail

rP Phabricator
Lint Not Applicable
Tests Not Applicable