Add comments and system notes to issues
Comments and notes can be fetched from the transacaction.search
or the maniphenst.gettasktransactions
. The later is "frozen" but the information seems more complete.
{
"taskID": "826",
"transactionID": "9096",
"transactionPHID": "PHID-XACT-TASK-aaa",
"transactionType": "status",
"oldValue": "open",
"newValue": "resolved",
"comments": null,
"authorPHID": "PHID-USER-aaa",
"dateCreated": "1384791758"
},
{
"taskID": "826",
"transactionID": "9095",
"transactionPHID": "PHID-XACT-TASK-aaa",
"transactionType": "core:comment",
"oldValue": null,
"newValue": null,
"comments": "Closed by commit rP6edf675aab5b.",
"authorPHID": "PHID-USER-aaa",
"dateCreated": "1384791758"
},
Based on the transactionType
field we will need to determine if we create a regular comment or a system note.
The transactiontype edge
contains information of other objects accessible through the API: For example the commit closing the task. We might have to dig deeper to create the system note for those.