@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Make maniphest.gettasktransactions include metadata and title

Summary:
Include task title and metadata in Conduit's `maniphest.gettasktransactions` output.
This data can for example be used by IRC bots to improve their output (e.g. conditions which changes [not] to emit or text coloring based on metadata).

Upstreaming from https://phabricator.wikimedia.org/rPHABf2fd14dc1edeb41aa2874336548cfaa7fa0e87a0

NOTE: this specific API is in "frozen" status. This method is frozen and will eventually be deprecated. New code should use "transaction.search" instead.

Closes T15916

Test Plan: Call `maniphest.gettasktransactions` on a task, see two additional fields.

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15916

Differential Revision: https://we.phorge.it/D25777

+2
+2
src/applications/maniphest/conduit/ManiphestGetTaskTransactionsConduitAPIMethod.php
··· 69 69 70 70 $results[$task_id][] = array( 71 71 'taskID' => $task_id, 72 + 'title' => (string)$transaction->getTitleForTextMail(), 72 73 'transactionID' => $transaction->getID(), 73 74 'transactionPHID' => $transaction->getPHID(), 74 75 'transactionType' => $transaction->getTransactionType(), 75 76 'oldValue' => $transaction->getOldValue(), 76 77 'newValue' => $transaction->getNewValue(), 78 + 'meta' => $transaction->getMetadata(), 77 79 'comments' => $comments, 78 80 'authorPHID' => $transaction->getAuthorPHID(), 79 81 'dateCreated' => $transaction->getDateCreated(),