我通过POST请求传递下面的JOSN以创建Jira问题。其中一个参数是开始日期和时间(customfield_10603 )。在JIRA应用程序中,我们有此字段的日期和时间选择器。 应以何种格式发送此值。我尝试了2018-06-17T00:00:00.0 + 0000。 JSON已发送:
{
"fields": {
"project":
{
"key": "HOA"
},
"summary": "Test ticket for JIRA_Jenkins integration.",
"customfield_10616":{"value":"Other"},
"description": "Creating of an issue using project keys and issue type names using the REST API",
"customfield_10603": {"value":"2018-06-17T00:00:00.0+0000"},
"issuetype": {"name": "Change Request" },
"customfield_10624": {"value":"Low"},
"customfield_12100": {"value" :"Low"},
"customfield_10625": {"value":"SRE"},
"customfield_10615": {"value":"Routine"}
}
}
收到回复:
{
"errorMessages": [],
"errors": {
"customfield_10603": "Operation value must be a string"
}
}
答案 0 :(得分:0)
找到解决方案。
“customfield_10603”:“2018-06-17T00:00:00.0 + 0000”。