It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to create a ticket via service desk api

Hi all,

I was using the JIRA rest api to create the issue. I want to update the customer whenever someone added/ update a comment. For that purpose,  I added an automation rule.

commentrule.png

But I found out that no emails are sending whenever somebody comments. 

Then from this post https://community.atlassian.com/t5/Jira-Service-Desk-questions/Automation-Rule-Notification-Action-Not-Sending/qaq-p/738762 , I  understood that I have to change my request type to service desk. 

jiraticket.png

Then I found out that there is separate service desk rest api https://community.developer.atlassian.com/t/whats-the-difference-between-jira-rest-api-and-jira-service-desk-rest-api/11009  but I could not find a proper example about create a ticket using service desk api.

 

Can some one please point me to the right direction.

1 answer

1 accepted

0 votes
Answer accepted

Following example worked. (ref - https://docs.atlassian.com/jira-servicedesk/REST/3.6.2/?_ga=2.157320761.2089437250.1557061318-247648608.1537283601#servicedeskapi/request-createCustomerRequest)

rest/servicedeskapi/request

with json body

 

{
"serviceDeskId": "{your id}",
"requestTypeId": "{your id}",
"requestFieldValues": {
"summary": "Request raised via service REST API",
"description": "test."
}
}

How do you specify the reporting customer?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

303 views 1 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you