@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.

Add workboard link to emails about workboard changes

Summary: Fixes T4652, adding workboard link to emails

Test Plan: Move a task in a workboard from one column to another. Email notification should contain "WORKBOARD" section with link to that workboard

Reviewers: chad, epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T4652

Differential Revision: https://secure.phabricator.com/D10889

authored by

lkassianik and committed by
epriestley
c2f0955e ff7a514a

+29
+1
src/__phutil_library_map__.php
··· 5312 5312 'PhabricatorRepositoryDAO', 5313 5313 'PhabricatorPolicyInterface', 5314 5314 'PhabricatorFlaggableInterface', 5315 + 'PhabricatorProjectInterface', 5315 5316 'PhabricatorTokenReceiverInterface', 5316 5317 'PhabricatorSubscribableInterface', 5317 5318 'PhabricatorMentionableInterface',
+28
src/applications/maniphest/editor/ManiphestTransactionEditor.php
··· 501 501 pht('TASK DETAIL'), 502 502 PhabricatorEnv::getProductionURI('/T'.$object->getID())); 503 503 504 + 505 + $board_phids = array(); 506 + $type_column = ManiphestTransaction::TYPE_PROJECT_COLUMN; 507 + foreach ($xactions as $xaction) { 508 + if ($xaction->getTransactionType() == $type_column) { 509 + $new = $xaction->getNewValue(); 510 + $project_phid = idx($new, 'projectPHID'); 511 + if ($project_phid) { 512 + $board_phids[] = $project_phid; 513 + } 514 + } 515 + } 516 + 517 + if ($board_phids) { 518 + $projects = id(new PhabricatorProjectQuery()) 519 + ->setViewer($this->requireActor()) 520 + ->withPHIDs($board_phids) 521 + ->execute(); 522 + 523 + foreach ($projects as $project) { 524 + $body->addLinkSection( 525 + pht('WORKBOARD'), 526 + PhabricatorEnv::getProductionURI( 527 + '/project/board/'.$project->getID().'/')); 528 + } 529 + } 530 + 531 + 504 532 return $body; 505 533 } 506 534