Forums

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

JIRAdesk automation - Creating issue using webhook not working

Anurag Mishra
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!
June 12, 2020

I have a jira desk project and in the same server I have another jira project which we are using for our dev tracking. I am trying to automate when an approver approves the service desk request it should automatically create an issue in my dev jira project. The rest apis are exposed and they are working as I am able to create the issue using CURL command.  Here is what my setup looks like -

1. In Jiradesk - Automation rule has been created. A webhook with the url and using the custom payload and custom payload is in Jason format.

2. Content type header is set

3. Checking logs it seems like the rule is getting executed successfully but it does not create the JIRA issue on the other project

 

Custom payload details -

{
    "fields": {
       "project":
       {
          "key": "PROJECTNAME"
       },
       "summary": "${issue.summary}",
       "description": "${issue.description}",
       "issuetype": {
          "name": "Story"
       }
   }
}

1 answer

1 accepted

1 vote
Answer accepted
Ivan Lima
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.
June 14, 2020

@Anurag Mishra , the JSD webhook is designed to send events to third-party applications and plugins. I'm afraid that this is not possible as a straight HTTP callback to the same Jira instance.

If you are referring to the logs from your automation page, through the UI, it won't show failures in this case because your WebhookThenAction is running successfully. However, your actual logs should present the response status and message of your call - where you will certainly find more details.

I guess you still can make it work through os_authType but you would need to work through basic authentication - which would be a terrible idea since your credentials will navigate across the wire.

It is a typical use case implemented by lots of add-ons/apps that can address this for you. Anyways, have a look at these links that might help you with Webhooks

Cheers,
IL.

Anurag Mishra
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!
June 15, 2020

Thanks for your reply Ivan. quick question though any recommended plugin/add on you have to share?

Ivan Lima
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.
June 16, 2020

Well, there are many options out there. Some are more focused on workflow features that give you the automation you're looking for as a post-function, whereas others bundle with lots more capabilities. As you know, you can give them a try to make a decision about which one suits best for you. Have a look at the Atlassian Marketplace Jira Service Desk Apps

Some quite popular that you can begin looking at


Cheers,
IL.

Like Anurag Mishra likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events