I have a small PHP file that creates a Task.
This is just an example that can be placed in the root of Phorge:
<?php require 'scripts/init/init-script.php'; $task_title = $argv[1]; // Just one random user. $phorge_user = ( new PhabricatorPeopleQuery() ) ->setViewer( PhabricatorUser::getOmnipotentUser() ) ->setLimit( 1 ) ->executeOne(); $maniphest_transaction_template = new ManiphestTransaction(); // Create a new Task. $task = ManiphestTask::initializeNewTask($phorge_user); // Set a title. $xactions[] = (clone $maniphest_transaction_template) ->setTransactionType(ManiphestTaskTitleTransaction::TRANSACTIONTYPE) ->setNewValue($task_title); // Another random action. Set status. $xactions[] = (clone $maniphest_transaction_template) ->setTransactionType(ManiphestTaskStatusTransaction::TRANSACTIONTYPE) ->setNewValue(ManiphestTaskStatus::getDefaultClosedStatus()); // Save Task. $editor = (new ManiphestTransactionEditor()) ->setActor($phorge_user) ->setContentSource(PhabricatorContentSource::newForSource(PhabricatorConsoleContentSource::SOURCECONST)) ->applyTransactions($task, $xactions);
So I can execute the file and it works:
php create-task.php "Task title"
What happens
But I get this nonsense "renamed" transaction feed in the homepage:
What should happen instead
I'm quite sure that this should happen instead:
Question
Am I doing something wrong?
If not, maybe we have a bug here:
Note that the normal feed in the object page is correct instead. It's just the homepage feed that says "renamed".