Note:5: Difference between revisions

From notes
No edit summary
No edit summary
Line 5: Line 5:
Motivation: I would like to be able to visualize the relationships between a set of tasks in Phabricator. That is, for a set of tasks, I want a directed graph showing the parent task/subtask relationships. Bonus if it also shows the tags and/or status on each task. It should be straightforward to display that in a force-directed graph using D3 with information queried using the Conduit Phabricator API.
Motivation: I would like to be able to visualize the relationships between a set of tasks in Phabricator. That is, for a set of tasks, I want a directed graph showing the parent task/subtask relationships. Bonus if it also shows the tags and/or status on each task. It should be straightforward to display that in a force-directed graph using D3 with information queried using the Conduit Phabricator API.


https://phabricator.wikimedia.org/api/maniphest.search
Visit https://phabricator.wikimedia.org/conduit/method/maniphest.search/.


In the query form, fill in:
In the query form, fill in:

Revision as of 20:48, 6 September 2017

Author
Created 7 September 2017 01:42:07
Last Modified 7 September 2017 14:25:07
Tags Phabricator

Motivation: I would like to be able to visualize the relationships between a set of tasks in Phabricator. That is, for a set of tasks, I want a directed graph showing the parent task/subtask relationships. Bonus if it also shows the tags and/or status on each task. It should be straightforward to display that in a force-directed graph using D3 with information queried using the Conduit Phabricator API.

Visit https://phabricator.wikimedia.org/conduit/method/maniphest.search/.

In the query form, fill in:

constraints {"parentIDs": [174043]}
attachments {"projects": true}

This finds all of the subtasks of T174043 and lists their information including the internal ids of the tags, which could then also be queried.

The code to reproduce this query is generated as follows:

$ echo '{
  "constraints": {
    "parentIDs": [
      174043
    ]
  },
  "attachments": {
    "projects": true
  }
}' | arc call-conduit --conduit-uri https://phabricator.wikimedia.org/ --conduit-token <conduit-token> maniphest.search