Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to Create ticket from one JSM to another JSM using webhooks?

Jakeer November 16, 2023

Hello Team,

How can we create a ticket (Issue) from one JSM Instance to another JSM instance using Webhooks?

If one issue is created in one instance the same must be reflected in another instance.

I have tried through Automation, and I am sharing the Automation rule where we are facing errors.

I have attached the screen shots where the Web Send Request Automation is working and the Incoming Web Request getting errors.Send Request.pngIncoming.png

Any quick suggestions will be more helpful?

Thanks,

1 answer

0 votes
Marc - Devoteam
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.
November 16, 2023

Hi @Jakeer 

In you web request how is you issue date (payload) structured.

It seems you are not sending information, as the error states that on the create action there is no data for the field summary and this is always a mandatory field

Jakeer November 16, 2023

Hello @Marc - Devoteam

Thanks for the Answer.

In the Send Web Request when i try to give the Web URL as 

https://automation.atlassian.com/pro/hooks/a197df43e948e2fa188ea4a8a3ec05e208623567 

I am getting Success in the Send Web Request and in the Incoming Web Request getting error as No issues from the Webhooks".

I am attaching the Screenshots of my Automation rule.

In the same URL if i add 

https://automation.atlassian.com/pro/hooks/a197df43e948e2fa188ea4a8a3ec05e208623567 ?issue{issue.key} or ?issue:key=ABC I am getting error in the Send Web Request as 404 error or 302 error. 

Can you please provide me the automation rule for Send Web Request and Incoming Web Request to create a ticket from one JSM Instance to another JSM Instance.Test1.pngTest.png

Thanks in Advance,

Marc - Devoteam
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.
November 16, 2023

Hi @Jakeer 

What are the details of the Send Web request action in your automation rule?

Jakeer November 16, 2023

Hi @Marc - Devoteam ,

Please find the Automation rule where I am sending web request to the another jsm instance using its URL.

Thanks,

Rule.png

Jakeer November 17, 2023

Hi @Marc - Devoteam

In my first instance I am creating or updating the issue, and in the Send Web Request URL I have placed my second instance URL Where the issue needs to be created with same data. When I am creating or editing the issue in my first instance I am getting error as 404 or sometimes please specify the specific key or project id.

Can you please help with the exact automation rule where we when we create a issue in my 1st instance the same should be reflected in my second instance with same data.

Thanks in advance,

Marc - Devoteam
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.
November 17, 2023

Hi @Jakeer 

You would need to use the custom option in the web request and specify the JSON.

You can use Issue Data (Jira format as example).

But you can't sent this to your other jira as is. The request specifies the issue data and to be created with all the same details as the original issue.

But do you have the same project in the other Jira does that project have the same ID, and this relates to issue type, fields etc.

Jakeer November 17, 2023

Hi @Marc - Devoteam

We are having the same issue types and fields in the other instance. Only the project name is different, and I tried using Jira format and also Custom data still getting the errors.

Thanks,

Marc - Devoteam
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.
November 17, 2023

Hi @Jakeer 

You need to use the custom option.

The errors reported, are feedback that the JSON probably not correct.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events