【发布时间】:2017-03-30 21:57:32
【问题描述】:
我正在尝试在使用 POST HTTP 请求创建的任务中设置 type enum_value 的 custom_fields。
我设法设置了一个 type number 的 custom_field,但我遇到了 type enum_value
的 custom_fields 问题问题:
这是我到目前为止所做的:
1- 我创建了要在体式上填充的 custom_fields,我可以设置 type number 的 custom_fields,但不能设置 type enum_value 的 custom_fields(见附图)
这是我的代码(我尝试了不同的实现来设置不正确的 custom_fields):
var task = {
data: {
assignee: "me",
workspace: "1234567",
projects: "9876543",
parent: null,
custom_fields: {
"1234567898": 333, // this works
"98765": "Public" // this custom field holds an enum_values, this implementation doesn't work
},
notes: "Test notes"
}
}
【问题讨论】: