I can get the queues but I cannot put the issue in a certain queue or assign the request to someone.
That’s basically what I want. I want to be able to assign someone to a request, either on the creation of the request or after.
The create customer request only allows you to set a reporter (raiseOnBehalfOf) and requestParticipants.
Hi @Paolo Di Bello - With queues you do not put issues in queues. Rather an issue will appear in one or more queues based on the filter criteria specified for that queue. So, make sure your queues are configured so that an issue shows in the queue that you expect.
For updating the assignee you should be able to add the assignee field to the requestFieldValues object and set it there.
What should I specify in the requestFieldValues ?
an assignee inside?
Like this requestFieldValues {assignee: ...}?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Close, but you need to be sure to use quotes:
"requestFieldValues": { "assignee": "jsmith" }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried with the following request and it didn't work as expected:
{
"requestParticipants": [
""
],
"serviceDeskId": "1",
"requestTypeId": "10104",
"requestFieldValues": {
"summary": "I am Fred",
"description": "!!",
"reporter": {
"name": "hateyou"
},
"assignee": {
"name": "hateyou"
}
}
}
I got this error log
{
"errorMessage": "Unable to create request because of theses errors : The field 'reporter' is not valid for this request type 'Email request'.",
"i18nErrorMessage": {
"i18nKey": "sd.request.create.error.failed.msg",
"parameters": [
"The field 'reporter' is not valid for this request type 'Email request'."
]
}
}
I also tried by putting exactly the code you gave me
"requestFieldValues": {
"assignee": "jsmith"
}
But I get the following error log:
{
"errorMessage": "Unable to create request because of theses errors : Field with id 'assignee' named 'Assignee' has these errors : data was not an object",
"i18nErrorMessage": {
"i18nKey": "sd.request.create.error.failed.msg",
"parameters": [
"Field with id 'assignee' named 'Assignee' has these errors : data was not an object"
]
}
}
I think the assignee field needs to be an object.
Thanks in advance!
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
PUT /rest/api/2/issue/:issueIdOrKey/assignee
body:
{
"name": "-1"
}
The above api request allows you to set or unset(-1) the assignee but only after the creation of the customer request.
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.