How do you find the PHID of a Phabricator object?

只谈情不闲聊 提交于 2019-12-04 01:02:07
CEPA

Easiest way:

  1. Go to the project
  2. Click New Task
  3. Look at the URL, it will have a parameter like:

    ?projects=PHID-PROJ-owipizovyry4fatifwfd
    
    • PHID is "PHID-PROJ-owipizovyry4fatifwfd"

Option 2:

  1. Go to your Conduit [phabricator_url]\conduit
  2. Find the method project.query
  3. Enter the name in a JSON encoded array (i.e. ["project name"])
  4. Click Call Method
  5. PHID will be one of the data elements:

    {
      "data"    : {
        "PHID-PROJ-oybqquyhhke4awiw2akz" : {
          "id"           : "19",
          "phid"         : "PHID-PROJ-oybqquyhhke4awiw2akz",
          "name"         : "project name",
          "members"      : [
            "PHID-USER-gapak5h34h6d5yvl67dx",
            "PHID-USER-674vq754zfuhyxgvvq7x",
            "PHID-USER-qvcdsyc4oz7rzpzziiyk",
            "PHID-USER-qmefzjtsrmnxjxpc45km",
            "PHID-USER-pbhygge7rgpdowz3s5vk"
          ],
          "slugs"        : [
            "project_name"
          ],
          "dateCreated"  : "1396666703",
          "dateModified" : "1396668261"
        }
      }
    }
    

A more robust method would be to call the conduit method phid.lookup:

https://<your install>/conduit/method/phid.lookup/

Then enter in names something like @user, #project or Z2 and you'll get the PHID.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!