Send attachment to JSM using rest api

Mahipal Singh January 28, 2025

 

 

Hi Atlassian Community,

I am working on an integration between FreshService (FS) and Jira Service Management (JSM). I have successfully created a ticket in JSM by sending a webhook from FS Workflow. Now, I need to send attachments to the same JSM ticket in a second step.

Specifically, the scenario is as follows:

  1. A ticket is created in JSM by sending a webhook from the FS workflow.
  2. After the ticket creation, I need to send attachments to the same ticket in JSM via another web request sent from FS.

Could you please guide me on how I can achieve this? I need to send the file(s) after the ticket creation, so the request will be sent second time after the ticket is created.

Any advice or pointers on how to send attachments in this scenario (especially with a second webhook request) would be greatly appreciated!

Thanks in advance!

1 answer

0 votes
Ramakrishna _RK_
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.
January 28, 2025

Hi @Mahipal Singh ,

Welcome to Atlassian Community!

Using Jira webhooks, we cannot directly send attachments as part of payloads. Jira webhooks are meant to send event notification in json format where it can include metadata about the event.

Please let me know if you still have any questions?

Regards

RK

Mahipal Singh January 29, 2025

Hello Ramakrishna,

Thanks for your response. I need to send attachments through the FS workflow using a webhook or web request. Could you let me know which code should be used in the FS workflow after the ticket attachment is sent to Jira?

Regards,

Mahipal Singh

Suggest an answer

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

Atlassian Community Events