Hi,
When I send a GET request rest/servicedeskapi/servicedesk/{id}/requesttype/{id}/field
it returns with
{
"requestTypeFields": [
{
"fieldId": "summary",
"name": "Subject",
"description": "",
"required": true,
"defaultValues": [],
"validValues": [],
"jiraSchema": {
"type": "string",
"system": "summary"
}
},
{
"fieldId": "description",
"name": "Body",
"description": "",
"required": false,
"defaultValues": [],
"validValues": [],
"jiraSchema": {
"type": "string",
"system": "description"
}
}
],
"canRaiseOnBehalfOf": true,
"canAddRequestParticipants": true
}
but In the Post request if I add 'raiseOnBehalfOf' (rest/servicedeskapi/request)
{
"serviceDeskId": "1",
"requestTypeId": "2",
"requestFieldValues": {
"summary": "Request raised via service REST API",
"description": "test.",
"raiseOnBehalfOf" : "dummy@gmail.com"
}
}
then it fails with 400 error
{
"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."
]
}
}
Could someone please explain this behaviour
Understood the issue. I was putting 'raiseOnBehalfOf ' inside requestFieldValues but it should be outside
{
"serviceDeskId": "1",
"requestTypeId": "217",
"requestFieldValues": {
"summary": "Request raised via service REST API",
"description": "test."
},
"raiseOnBehalfOf" : "dummy@gmail.com"
}
I have the same issue. However, my "raiseOnBehalfOf" is also outside of the requestFieldValues and it still does not take it. Any ideas??
{
"serviceDeskId": "1",
"requestTypeId": "63",
"requestFieldValues": {
"summary": "Test work order from Tiffanys web app",
"description": "This is an automated test work order from Tiffanys web app. I will delete when finished. Thanks!",
"priority": {
"id": "10200"
},
"customfield_10124": {
"id": "10109"
},
"customfield_10125": "Tiffanys Office"
},
"raiseOnBehalfOf": "tamara.deep@cmcss.net"
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this way
url = "https://_domain_.atlassian.net/rest/servicedeskapi/request"
payload = json.dumps( {
"raiseOnBehalfOf": "tamara.deep@cmcss.net",
"serviceDeskId": "1",
"requestTypeId": "63",
"requestFieldValues": {
"summary": "Test work order from Tiffanys web app",
"description": "This is an automated "
}
} )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.