The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Create a new support ticket using API

ssuchanowski
May 21, 2021

I have only the user id, email, and message - I want to create a new ticket using API.

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
ssuchanowski
May 24, 2021

Creating new tickets

https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-request/#api-rest-servicedeskapi-request-post

If anyone like me wants to create tickets for the users to move more data it is important to remember to replace 'requestParticipants' with 'raiseOnBehalfOf'.

 

Creating new customers

https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-servicedesk/#api-rest-servicedeskapi-servicedesk-servicedeskid-customer-post

daneil song
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 20, 2023

Hi @ssuchanowski  I use Creating new tickets

got "errorMessage": "You can't raise a request on behalf of this user because they need the customer role on your site managed by your organization admins."

do you know how to fix it ? 

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 21, 2021
ssuchanowski
May 24, 2021

This is a very generic answer - I am already spending a lot of time figuring out all the fields. I will post here an answer if I will get the actual request body in a reasonable time.

ssuchanowski
May 24, 2021

I got most of it but some parts are just not working for me:

  • don't know how to set requestType - I am creating a support ticket but not able to connect it with the proper type (this is nice to have)
  • language - I support more than just English and I am not able to set the proper request language - I've tried setting X-Force-Accept-Language (important)
  • when I reply to the customer in activity section the state is not changing to waiting for the customer (critical)
  • as a user, I am not getting any email notifications at all (critical)

Am I doing something wrong here? My current setup base on email support tickets (when I send email myself and add the user as a participant) and web-based support - both work fine.

ssuchanowski
May 24, 2021

Besides not being able to use proper language I've solved all other issues by using a proper endpoint -> https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-request/#api-rest-servicedeskapi-request-post

Like Camila Lorena Reyes likes this
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events