【发布时间】:2017-04-20 08:00:46
【问题描述】:
我无法使用 Jira rest API 创建自定义字段,代码如下:
curl -D- -u abc:1234 -X POST https://*******.atlassian.net/rest/api/2/issue --data '
{
"fields": {
"project": {
"key": "HELLOWORLD"
},
"summary": "Test-RestAPI",
"description": "Creating Task using project keys and issue type names using the REST API",
"issuetype": {
"name": "Task"
},
"customfield_10200": { "name": "ABC" },
"customfield_10300": { "name": "ABCD" }
}
}' -H "Content-Type: application/json"
以下错误:
{"errorMessages":[],"errors":{"customfield_10300":"Operation value must be a string"}}
有什么想法吗?
【问题讨论】:
标签: post jira jira-rest-api