Hi Team,
I am trying to create issue using servicedesk API with following parameter:
URL: https://spherewms.atlassian.net//rest/servicedeskapi/request
Project Key - SS
POST Payload:
{
"serviceDeskId":"1",
"requestFieldValues":{
"summary":"Test",
"description":"Testing",
"customfield_11802":{
"value": "10905"
}
},
"requestTypeId":"59"
}
Here custom field(customfield_11802) represent the Environment in request type.
I am not able to create ticket in and getting this error,
{
"errorMessage": "Unable to create request because of theses errors : Field with id 'customfield_11802' named 'Environment' has these errors : Option value '10905' is not valid",
"i18nErrorMessage": {
"i18nKey": "sd.request.create.error.failed.msg",
"parameters": [
"Field with id 'customfield_11802' named 'Environment' has these errors : Option value '10905' is not valid"
]
}
}
Any help would be really great for me.
Regards
Arihant Jain
If 10905 is the option id then your json should be like this
{
"serviceDeskId":"1",
"requestFieldValues":{
"summary":"Test",
"description":"Testing",
"customfield_11802":{
"id": "10905"
}
},
"requestTypeId":"59"
}
Have a look at the options for the environment field in the list of custom fields, I suspect you will find that you don't have a value with key 10905 on it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.