Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15416041
D17018.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D17018.diff
View Options
diff --git a/src/applications/maniphest/conduit/ManiphestQueryConduitAPIMethod.php b/src/applications/maniphest/conduit/ManiphestQueryConduitAPIMethod.php
--- a/src/applications/maniphest/conduit/ManiphestQueryConduitAPIMethod.php
+++ b/src/applications/maniphest/conduit/ManiphestQueryConduitAPIMethod.php
@@ -38,6 +38,7 @@
'projectPHIDs' => 'optional list<phid>',
'ccPHIDs' => 'optional list<phid>',
'fullText' => 'optional string',
+ 'title' => 'optional string',
'status' => 'optional '.$status_const,
'order' => 'optional '.$order_const,
@@ -95,6 +96,11 @@
$query->withFullTextSearch($full_text);
}
+ $title = $request->getValue('title');
+ if ($title) {
+ $query->withTitle($title);
+ }
+
$status = $request->getValue('status');
if ($status) {
$query->withStatus($status);
diff --git a/src/applications/maniphest/query/ManiphestTaskQuery.php b/src/applications/maniphest/query/ManiphestTaskQuery.php
--- a/src/applications/maniphest/query/ManiphestTaskQuery.php
+++ b/src/applications/maniphest/query/ManiphestTaskQuery.php
@@ -24,6 +24,7 @@
private $hasOpenSubtasks;
private $parentTaskIDs;
private $subtaskIDs;
+ private $title;
private $fullTextSearch = '';
@@ -127,6 +128,11 @@
return $this;
}
+ public function withTitle($title) {
+ $this->title = $title;
+ return $this;
+ }
+
public function setGroupBy($group) {
$this->groupBy = $group;
@@ -346,6 +352,13 @@
$this->taskPHIDs);
}
+ if ($this->title !== null) {
+ $where[] = qsprintf(
+ $conn,
+ 'task.title = %s',
+ $this->title);
+ }
+
if ($this->statuses !== null) {
$where[] = qsprintf(
$conn,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 21, 8:53 AM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7225133
Default Alt Text
D17018.diff (1 KB)
Attached To
Mode
D17018: Add a `title` field to the `maniphest.query` conduit method
Attached
Detach File
Event Timeline
Log In to Comment