phabricator - 如何使用 Phabricator “maniphest.edit” API 向列添加票证,同时还使用其“beforePHIDs”参数?
问题描述
根据 maniphest.edit "Transaction Type: Column"文档,beforePHIDs
参数应该是一个 PHID 数组。我认为这将如下所示:
curl https://5555/api/maniphest.edit \
-d api.token=api-token \
-d transactions[0][type]=column \
-d transactions[0][value][0][columnPHID]=PHID-PCOL-6666 \
-d transactions[0][value][0][beforePHIDs][0]=PHID-TASK-7777 \
-d objectIdentifier=PHID-TASK-8888
但是,当这样调用(beforePHIDs
作为数组)时,我收到以下错误,这似乎与文档相矛盾:
Exception when processing transaction of type "column": Error while reading "value[0]": Expected string, got something else.
我的 curl 语句需要如何更改才能使其正常工作?我已经尝试了所有我能想到的排列方式。或者这可能是一个错误?
旁注 - 这工作正常,但它不允许控制票插入点:
curl https://5555/api/maniphest.edit \
-d api.token=api-token \
-d transactions[0][type]=column \
-d transactions[0][value][0]=PHID-PCOL-6666 \
-d objectIdentifier=PHID-TASK-8888
解决方案
推荐阅读
- scala - Case Classes 的浅拷贝在 Scala 中究竟是如何工作的?
- python - 在 django 的 url 中发送参数
- docker - 有一些方法可以离线管理 Kubernetes 镜像吗?
- java - 将应用程序从 JDK 8 迁移到 OpenJDK 11 时出现 SLF4J 问题
- javascript - 如何使用 async/await 按执行顺序获取 fetch api 结果?
- javascript - Javascript - NaN.undefined 为 textholder 问题
- android - 与对应用程序上下文的空引用相关的错误,读取 nfc
- android - 在 Android.bp 中使用 Golang 对“optional_subdirs”应用条件?
- opengl-es - glInvalidateFramebuffer 与共享附件的意义
- cocos2d-x - Cocos - 如何创建 Mac 特定游戏(不是 iOS)