当我向JIRA服务台云发送GET请求时 rest / servicedeskapi / servicedesk / {id} / requesttype / {id} / field
在响应中,我可以看到"canRaiseOnBehalfOf": true,
。
但是在发布请求中,如果我添加'raiseOnBehalfOf' (rest / servicedeskapi / request)
{
"serviceDeskId": "1",
"requestTypeId": "2",
"requestFieldValues": {
"summary": "Request raised via service REST API",
"description": "test.",
"raiseOnBehalfOf" : "dummy@gmail.com"
}
}
然后失败,并显示 400错误
{
"errorMessage": "Unable to create request because of theses errors : The field 'raiseOnBehalfOf' could not be found.",
"i18nErrorMessage": {
"i18nKey": "sd.request.create.error.failed.msg",
"parameters": [
"The field 'raiseOnBehalfOf' could not be found."
]
}
}
有人能提供一个线索为什么会这样吗?
答案 0 :(得分:0)
了解该问题。我将'raiseOnBehalfOf'放入requestFieldValues内,但应该在
之外{
"serviceDeskId": "1",
"requestTypeId": "1",
"requestFieldValues": {
"summary": "Request raised via service REST API",
"description": "test."
},
"raiseOnBehalfOf" : "dummy@gmail.com"
}