Forums

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

Make an API call from Zendesk to create task

Ella Mozes
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!
February 11, 2024

Im trying to create an automation - when receiving a webhook from zendesk(ticketing system) , create a task  

right now the only JSON body that was OK is the following one: 

{
  "token": "*** ****",
  "issues": ["TSB-74"]
}

but it's duplicating the issue that I wrote here. 
if im using a placeholder from zendesk (ticket title) its desnt finds I get this message:

No issues from the webhook

 

I found this json body in the API documentation, but it gives me the "no issue from webhook" 



{ "fields": { "project": { "key": "TEST" }, "summary": "REST ye merry gentlemen.", "description": "Creating of an issue using project keys and issue type names using the REST API", "issuetype": { "name": "Bug" } } }


bottom line - 
what or where can I find json body that jira receives to create a task inside a Jira board ?

1 answer

1 accepted

1 vote
Answer accepted
Kalyan Sattaluri
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 Leaders.
February 11, 2024

Hello @Ella Mozes  Welcome to the community. Can you tell why not directly call Jira' API to create issue instead of webhook route?

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post

If you do want to do this approach you have listed, please share screenshots of the rule and audit log.

 

In the mean time, some suggestions,

  • Confirm that in your "Incoming Webhook" Jira Trigger set up, you have selected "No issues from the webhook".  (See screenshot.)
  • In your Jira, right after your "Incoming Webhook" trigger, create a new action -> log action -> {{webhookData}} to see what you are receiving from Zendesk. 
  • If you want a specific field, you will use the dot notation. so {{webhookData.fields.project.key}} will give you "TEST", this is how you assign your fields in the new task you are creating in your Jira.

Hope it helps.

 

image.png

 

Ella Mozes
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!
February 12, 2024

Thanks!! 
Im not using code this time 
But the other way worked just fine! 


Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events