0
我正在通過POST請求傳遞下面的JOSN來創建Jira問題。其中一個參數是開始日期和時間(customfield_10603 )。在JIRA應用程序中,我們有該字段的日期和時間選擇器。 該值應以何種格式發送出去。我嘗試了2018-06-17T00:00:00.0 + 0000。 JSON發送:JIRA REST API中的日期時間格式給出錯誤響應操作值必須是字符串
{
"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"
}
}