Programmatically creating a ticket as a customer (portal only) user

Is there an API call a customer could make to create a ticket?

I can successfully make this API call using Basic Authentication and API Tokens.
https://company.atlassian.net/rest/api/3/myself

But I get a 403 (Forbidden) error when I try to create the ticket:
https://company.atlassian.net/rest/api/3/issue

Here is the docs for the Create issue call:
https://developer.atlassian.com/cloud/jira/platform/rest/v3/?utm_source=%2Fcloud%2Fjira%2Fplatform%2Frest%2F&utm_medium=302#api-rest-api-3-issue-post

You’re looking at the PLATFORM API. That’s not correct. Look at the Service Desk API: https://developer.atlassian.com/cloud/jira/service-desk/rest/#api-rest-servicedeskapi-request-post

3 Likes

Exactly what I needed. Thank you!

1 Like

I’m glad that’s helpful. Good luck :slight_smile: