Page MenuHomePhabricator

Allow custom fields to accept function tokens like "viewer()"
Open, LowPublic

Description

I add this Custom-field in Manphest config:

"bug": {
  "name": "Bug Reporter",
  "search": true,
  "type": "users",
  "required": false
},

and in Search page, it looks like this:

pasted_file (55×749 px, 7 KB)

doesn't support "Current View" function, bug or design ?

Event Timeline

epriestley renamed this task from Maniphest Custom-field doesn't support "Current View" function, bug or design ? to Allow custom "users" fields to accept function tokens like "viewer()".Sep 8 2016, 3:46 PM
epriestley triaged this task as Low priority.
epriestley edited projects, added Feature Request, Typeahead; removed Bug Report.

This would be nice to have but is somewhat involved:

  • Currently, custom fields use the same datasource for editing and querying. This requires they be able to use different datasources (PhabricatorPeopleDatasource for editing, PhabricatorPeopleUserFunctionDatasource for querying).
  • Currently, custom fields use the same HTTP parameter type for editing and querying. This require they be able to use different parameter types (AphrontUserListHTTPParameterType for editing, something which accepts functions for querying).
joshuaspence renamed this task from Allow custom "users" fields to accept function tokens like "viewer()" to Allow custom fields to accept function tokens like "viewer()".Sep 10 2016, 12:44 AM
joshuaspence updated the task description. (Show Details)