I get the following response:
{“errorMessage”:“The request type you are trying to view does not exist.”,“i18nErrorMessage”:{“i18nKey”:“sd.customerview.error.vpOriginMissing”,“parameters”:}}
If I change “request” to “issue” in the endpoint, I get the following response:
{“errorMessages”:[“OAuth 2.0 is not enabled for method: POST /rest/servicedeskapi/issue/{issue-id-redacted}/comment/”]}
What correction can I make to be able to make a comment via servicedeskapi?
This response can be returned if the issue you are trying to comment on using this service desk endpoint is a Company-managed software project instead of a Service management type. Can you double check the project type if that is indeed the case?
If you are to add comments to tickets (regardless of the project type), you might want to try out Add comment REST API.
Thanks for the response!
Whats the beast way to determine if the issue is a Company-managed software project instead of a Service management type?
And is there any documentation on servicedeskapi endpoint?
This is the Jira service desk documentation for the server version only.
These can be seen as different categories/kinds of requests that can be raised on a service project, you can check this documentation for more information. In your original post, if you are using the service desk API to access a non-service desk project, then that could explain the “The request type you are trying to view does not exist.” error.
{
“errorMessage”: “The request type you are trying to view does not exist.”,
“i18nErrorMessage”: {
“i18nKey”: “sd.customerview.error.vpOriginMissing”,
“parameters”:
}
}
when i call this api:
…/rest/servicedeskapi/request//comment/411411/attachment
I am a Site Admin and definitely have visibility for the ticket. I’m using the rest api with my user.
I do not understand what the error message is telling me.
Welcome to the Atlassian Developer Community, @StuartWhite.
It is possible that the service desk request you are looking at does not have a request type like this sample
To verify using an API, you can use the Get issue endpoint and search for the text requesttype in JSON response (the customfield ID may vary). Mine looks something like this: