Using Postman to comment via servicedeskapi

Hello,

I’m trying to POST a comment using a Bearer Token via Postman to:
https://api.atlassian.com/ex/jira/{cloud-id}/rest/servicedeskapi/request/{issue-id}/comment/

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?

Thank you for the help :slight_smile:

Hi @ChristopherCasares ,

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.

Cheers,
Ian

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?

I see the documentation here:
https://docs.atlassian.com/jira-servicedesk/REST/3.9.1/#servicedeskapi/request/{issueIdOrKey}/comment-createRequestComment

Referencing:

As mentioned in my original post, it looked like I need to do something about the Request Type. What is the “Request Type” and where can I view it?

Hi @ChristopherCasares ,

You can use Get project REST API; this returns projectTypeKey wherein a value of service_desk refers to a service management type.

Yes, the cloud version can be referenced here.

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.

Hope this helps.

Ian