Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Service desk create request - raiseOnBehalfOf could not be found

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

2 answers

1 accepted

0 votes
Answer accepted

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"
}

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you