How to get custom field of transactionType?


#1

I want to record chang infomation of task and project from pha, so I create a webhook service to do it. In my webhook, I has received transaction phid, and I query the transaction detail by request “transaction.search” API, this is an example of the API returns:

(
    'taskID' => '140',
    'transactionID' => '2188',
    'transactionPHID' => 'PHID-XACT-TASK-rlwmdpjvpvl37ud',
    'transactionType' => 'core:customfield',
    'oldValue' => NULL,
    'newValue' => 1,
    'comments' => NULL,
    'authorPHID' => 'PHID-USER-obgbsvjrf55uiyzgeqdz',
    'dateCreated' => '1527439539',
  )

so, I want to know the detail of “core:customfied” in my pha and I don’t know how to find it


#2

That doesn’t look like the output of transaction.search. How exactly did you make the call?


#3

I has modified, please see it


#4

I have the same problem. Task custom field can’t be identified accurately by herald webhook.


#5

Can someone post reproduction steps for this?


#6
  1. Login test system http://pm.cq.gugud.com ( user:test3 password: test1234 )
  2. Herald webhook config http://pm.cq.gugud.com/herald/webhook/view/1/
  3. You can change this task http://pm.cq.gugud.com/T140 workload property.
  4. Your can receive
(
    'taskID' => '140',
    'transactionID' => '2188',
    'transactionPHID' => 'PHID-XACT-TASK-rlwmdpjvpvl37ud',
    'transactionType' => 'core:customfield',
    'oldValue' => NULL,
    'newValue' => 1,
    'comments' => NULL,
    'authorPHID' => 'PHID-USER-obgbsvjrf55uiyzgeqdz',
    'dateCreated' => '1527439539',
  )

I want to know the detail of “core:customfied” in my pha and I don’t know how to find it.


#7

Thanks, I’ve got enough to reproduce (“Use this value for maniphest.custom-field-definitions: {"gugud:deadline": {"name": "deadline", "type": "date", "search": true, "placeholder": "deadline", "required": false}}, update deadline, try to obtain info about transaction”).

Unfortunately, from looking around, I can’t find a way to actually get the information right now - this is part of https://secure.phabricator.com/T418, but it doesn’t appear to have been implemented yet.
Sorry :confused:


#8

You can get the current value of the field by using maniphest.search, which might be a work-around for you.


#9

Thx!