Page MenuHomePhabricator

projects.add does not work in maniphest.edit
Closed, InvalidPublic

Description

Reproduction:

[       {         "type": "title",         "value": "TEST_3"       },     {       "type": "description",       "value": "Test 3?"     },     {       "type": "owner",       "value": "PHID-USER-y7djwtvdkrc7sd2dymn6"     },     {       "type": "status",       "value": "open"     },     {       "type": "priority",       "value": "0"     },     {       "type": "projects.add",       "value_add": "PHID-PROJ-nitxwme6cvo45mcfry4s"      }   ]
  • Check, if the oproject Conduit has been added - unfortunateley not.

Event Timeline

You're calling value_add instead of value on projects.add. It also must be sent as a list (array) and not a string.

Test Task: https://secure.phabricator.com/T11062
Code:

$ echo '{
  "transactions": [
    {
      "type": "title",
      "value": "TEST_3"
    },
    {
      "type": "description",
      "value": "Test 3?"
    },
    {
      "type": "owner",
      "value": "PHID-USER-y7djwtvdkrc7sd2dymn6"
    },
    {
      "type": "status",
      "value": "open"
    },
    {
      "type": "priority",
      "value": "0"
    },
    {
      "type": "projects.add",
      "value": [
        "PHID-PROJ-nitxwme6cvo45mcfry4s"
      ]
    }
  ]
}' | arc call-conduit --conduit-uri https://secure.phabricator.com/ --conduit-token <conduit-token> maniphest.edit

Is there some other documentation we should fix that indicated those values were correct? If so we'll correct that. The Conduit app at least has the expected dictionary:

pasted_file (219×360 px, 20 KB)