3 final class DifferentialRevisionJIRAIssueURIsHeraldField
4 extends DifferentialRevisionHeraldField
{
6 const FIELDCONST
= 'differential.revision.jira.uris';
8 public function getHeraldFieldName() {
9 return pht('JIRA Issue URIs');
12 public function supportsObject($object) {
13 $provider = PhabricatorJIRAAuthProvider
::getJIRAProvider();
18 return parent
::supportsObject($object);
21 public function getHeraldFieldValue($object) {
22 $adapter = $this->getAdapter();
23 $viewer = $adapter->getViewer();
25 $jira_phids = PhabricatorEdgeQuery
::loadDestinationPHIDs(
27 PhabricatorJiraIssueHasObjectEdgeType
::EDGECONST
);
32 $xobjs = id(new DoorkeeperExternalObjectQuery())
34 ->withPHIDs($jira_phids)
37 return mpull($xobjs, 'getObjectURI');
40 protected function getHeraldFieldStandardType() {
41 return self
::STANDARD_TEXT_LIST
;