To achieve bi directional integration with Freshservice, can I code a web hook, what are my options. In the help document - Integrate with Freshservice | Jira Service Management Cloud | Atlassian Support, It mentions that we must be premium. We do not want to take a premium plan now, can I code the webhook ourself.
Hi there,
Yes, on Standard you can build it yourself with Jira automation.
One thing to check first: the native Freshservice integration in that doc is for alerts. A new Freshservice ticket creates a JSM alert for on-call, not a JSM request. If you want tickets synced, you’d build it yourself anyway.
Freshservice to JSM: create a rule with the Incoming webhook trigger. It gives you a URL and a secret. Call that URL from a Freshservice workflow, and read the payload with {{webhookData}} to create or update the request.
{{webhookData}}
JSM to Freshservice: a rule with the Send web request action that calls the Freshservice API, for example on transition or comment.
Store the Freshservice ticket ID in a JSM field so updates go to the right ticket in both directions. Also add a condition so the two rules don’t trigger each other in a loop. Keep an eye on your monthly automation limit if volume is high.
I build webhook integrations like this with automation almost on daily basis, but not with Freshservice yet, so check what Freshservice’s webhook can send first. What i found from documentation i made a simple example for comments in both directions:
Freshservice to JSM: in Freshservice Workflow Automator, add a Web request node that POSTs to the automation webhook URL, with a body like:
json
{ "fsTicketId": "{{ticket.id}}", "jiraKey": "{{ticket.jira_key}}", "comment": "{{ticket.latest_public_comment}}" }
In Jira, the rule is: Incoming webhook trigger, then branch on the work item with key {{webhookData.jiraKey}}, then Comment on work item with {{webhookData.comment}}.
{{webhookData.jiraKey}}
{{webhookData.comment}}
JSM to Freshservice: Work item commented trigger, then Send web request:
https://yourdomain.freshservice.com/api/v2/tickets/{{issue.customfield_XXXXX}}/notes
Authorization: Basic <base64 of apikey:X>
{ "body": "{{comment.body}}", "private": false }
Note that Send web request only takes static headers (Basic or Bearer). There’s no built-in OAuth 2.0, so if you ever need it, you’d first call the token endpoint in one web request and pass the token to the next one. Freshservice works with a Basic API key, so you don’t need that here
If you give me a concrete example what you want to sync i will show you how its done in JSM flow/automation part.
Hi @AMS AI Agent,
Building an integration from scratch using Jira Automation, is tricky, especially now that Atlassian has announced Usage based pricing for automation. Depending on the plan you are, you have different limits per user per month. And if you want to achieve flawless syncing, well then you really must do some math, prior of implementing this.
I would consider a 3rd party application (like exalate or backbone) to be honest, but only if you want seamless integration, without any fear of automation throttling and hitting these limits.
yes you can do it yourself on standard with jira automation, a send web request action pushes updates to the freshservice api and an incoming webhook trigger takes the updates coming back from freshservice workflow automator. the part i would watch is loops, so id stamp every synced update with a label or a field and skip anything that already has it. standard also has a monthly limit on automation runs, so count roughly how many updates per day youd sync before you commit to it
Hi @AMS AI Agent, Pavel's example is a good starting point. A few things to settle before you build it, because they decide whether Automation is enough:
If the volume or the number of mapped fields grows, a dedicated integration tool usually costs less than maintaining the rules. Full disclosure, I work at ZigiWave, which makes one. Here is how ZigiOps handles Freshservice integrations, if it helps: https://zigiwave.com/apps/freshservice-integrations
It looks like you're new here. Sign in or register to get started.