Website Change Alerts to Jira: Create Issues from a Webhook
Create a Jira issue for each AyeWatch website change, such as an API deprecation. Two routes: a signed relay that calls the REST API, or a Jira Automation incoming webhook.
By AyeWatch Team6 min read
Short answer: To send website change alerts to Jira, point AyeWatch's signed webhook at a relay that checks the signature and calls Jira's create issue endpoint, or at a Jira Automation rule with an incoming webhook trigger. AyeWatch has no Jira app, so one of those two steps creates the issue. Webhooks need a paid AyeWatch plan.
Which page changes belong in Jira
Jira is where engineering plans work, so send it the changes that turn into work: a vendor deprecates an endpoint you call, an SDK release note changes a method, a payment provider sets a date for a new security requirement. A news story about a competitor does not belong in a backlog. Send that to Slack or email instead.
A made-up alert from an API changelog monitor:
{
"topic_id": 8512,
"topic_name": "https://docs.tallyship.example/changelog",
"update_id": 142877,
"headline": "Tallyship removes the v1 shipments endpoint on 2027-04-01",
"content": "The changelog marks GET /v1/shipments as deprecated, with removal on 2027-04-01. Calls should move to /v2/shipments, which pages results with a cursor.",
"created_at": "2026-12-07T12:04:00Z",
"trigger": "deprecation or removal date",
"evidence": [
{ "quote": "v1 shipments: removal on 2027-04-01", "source_url": "https://docs.tallyship.example/changelog" }
]
}
Sample rule: Alert me when the Tallyship API changelog adds a deprecation, a removal date or a breaking change. Ignore new endpoints and docs fixes.
Route A: a relay that calls the REST API
Jira's REST API v3 creates an issue with a POST to /rest/api/3/issue on your site and answers 201 Created. The description must be in Atlassian Document Format (ADF), a JSON tree of paragraphs and text nodes, not a plain string. For a script, Atlassian uses basic auth with your account email and an API token from id.atlassian.com/manage/api-tokens. The account needs the Browse projects and Create issues permissions in the project.
Store AYEWATCH_SECRET, JIRA_SITE (your site's host name, such as yoursite.atlassian.net), JIRA_EMAIL, JIRA_API_TOKEN and JIRA_PROJECT_KEY as Worker secrets. SEEN is an optional KV namespace.
export default {
async fetch(request, env) {
// 1. Check X-AyeWatch-Signature against the raw request bytes.
const raw = await request.arrayBuffer();
const header = request.headers.get("x-ayewatch-signature") || "";
const hex = header.startsWith("sha256=") ? header.slice(7) : "";
if (!/^[0-9a-f]{64}$/i.test(hex)) return new Response("Bad signature", { status: 401 });
const sig = new Uint8Array(hex.match(/../g).map((h) => parseInt(h, 16)));
const key = await crypto.subtle.importKey(
"raw",
new TextEncoder().encode(env.AYEWATCH_SECRET),
{ name: "HMAC", hash: "SHA-256" },
false,
["verify"]
);
if (!(await crypto.subtle.verify("HMAC", key, sig, raw))) {
return new Response("Bad signature", { status: 401 });
}
// 2. Skip an update that was already delivered (SEEN is an optional KV namespace).
const e = JSON.parse(new TextDecoder().decode(raw));
const id = String(e.update_id);
if (env.SEEN && (await env.SEEN.get(id))) return new Response("Already sent");
const title = e.headline || e.topic_name;
const link = e.evidence && e.evidence[0] ? e.evidence[0].source_url : "";
// 3. Create the issue. REST API v3 wants the description in Atlassian Document Format.
const para = (text, href) => ({
type: "paragraph",
content: [
href
? { type: "text", text: text, marks: [{ type: "link", attrs: { href: href } }] }
: { type: "text", text: text },
],
});
const lines = (e.content || title).split(/\n+/).filter((l) => l.trim());
const doc = { type: "doc", version: 1, content: lines.map((l) => para(l)) };
if (link) doc.content.push(para(link, link));
const res = await fetch("https://" + env.JIRA_SITE + "/rest/api/3/issue", {
method: "POST",
headers: {
Authorization: "Basic " + btoa(env.JIRA_EMAIL + ":" + env.JIRA_API_TOKEN),
"Content-Type": "application/json",
Accept: "application/json",
},
body: JSON.stringify({
fields: {
project: { key: env.JIRA_PROJECT_KEY },
issuetype: { name: "Task" },
summary: title.slice(0, 255),
labels: ["ayewatch", "monitor-" + e.topic_id],
description: doc,
},
}),
});
const ok = res.ok;
if (!ok) return new Response("Destination refused", { status: 502 });
if (env.SEEN) await env.SEEN.put(id, "1", { expirationTtl: 1209600 });
return new Response("OK");
},
};
Two things fail often. The issue type must exist in the project, so change Task if yours has another name. If the labels field is not on the project's create screen, Jira answers 400; remove the labels line. Any refusal makes the Worker answer 502, and AyeWatch retries with exponential backoff, up to 10 attempts, with the same update_id each time.
Route B: Jira Automation's incoming webhook
Jira Automation has an Incoming webhook trigger. When you add it to a rule, Jira shows a unique URL and a secret. The secret normally goes in an X-Automation-Webhook-Token header. AyeWatch cannot add custom headers, so use the option Atlassian documents for such senders: add the secret to the end of the URL as its last path segment, and paste that full URL into AyeWatch.
The rule reads the payload through smart values, such as {{webhookData.headline}} for the summary and {{webhookData.content}} for the description. Add an action that creates an issue in your project and use those values there.
This route has costs. The rule never checks X-AyeWatch-Signature, so the URL is the only secret. Atlassian's docs also say the trigger answers 200 to any well-formed request, even one with a wrong secret, so a broken setup looks healthy from AyeWatch's side. Open the rule's audit log after the first alert. Jira plans also limit how many automation rule runs you get each month, so check yours before you point a busy monitor at it.
What this setup won't do
- Update the issue later. If the vendor moves the date again, AyeWatch sends a new alert and you get a new issue. Link it to the first one by hand.
- Set priority. The relay creates every issue the same way. Triage them like other incoming work.
- Read private docs. AyeWatch reads public pages and cannot sign in, so a changelog inside a partner portal is out of reach.
- Beat the schedule. A change reaches Jira after the next check: hourly on Pro, ASAP mode on Pro+.
Cost and a credit budget
Webhooks need a paid plan, trial included. AyeWatch Pro is $9/mo with 50 topics and hourly checks; Pro+ is $19/mo with 200 topics and ASAP mode. Every plan starts with a 7-day free trial.
A dependency feed for a team that calls three vendor APIs:
- One web page monitor with the three changelog pages, every 6 hours: 1 × 120 = 120 credits
- One web page monitor with the three deprecation or status pages, twice a day: 1 × 60 = 60
- One X search such as
from:tallyshipdev OR from:quillpaydev, daily: 2 × 30 = 60
Total: 240 credits a month, inside Pro's 500. Jira's own plan sets its limits on users and automation runs.
From changelog to Jira issue
- Pick a route: the relay if you want the signature checked, Jira Automation if you do not want to run code.
- For the relay, create an API token at id.atlassian.com/manage/api-tokens and note the project key.
- Deploy the relay with the site, email, token and project key as Worker secrets.
- For Automation instead, add an Incoming webhook trigger to a rule, copy the URL and add the secret as its last path segment.
- Open Notification settings, Webhook in AyeWatch, paste the relay URL and select Save Webhook. Reveal the signing secret and store it as
AYEWATCH_SECRET. - Create the changelog monitor in AyeWatch, then check the first issue, or the rule's audit log, after the next real update.
| AyeWatch field | Jira field | Note |
|---|---|---|
| headline (or topic_name) | summary | Cut at 255 characters |
| content | description | One ADF paragraph per line |
| evidence[0].source_url | description, last paragraph | A text node with a link mark |
| topic_id | labels | monitor-8512, so you can filter issues by monitor |
| Your settings | project.key, issuetype.name | Task by default |
| update_id | Not stored | KV key that stops a retry from creating a second issue |
Start a monitor in under a minute
Describe a topic or paste a URL. Cancel before the trial ends and you pay nothing.
Try it free for 7 daysThe bottom line
Start with one vendor changelog that has broken your build before, and send it to a test project for a month. Move it to the real backlog when every issue it creates is work someone did.
FAQ
Can AyeWatch create Jira issues directly?
No. AyeWatch sends a signed webhook. A relay that calls Jira's REST API, or a Jira Automation rule with an incoming webhook trigger, creates the issue.
Why does Jira reject my issue description?
Jira REST API v3 expects the description in Atlassian Document Format, a JSON document, not a plain string. Put each paragraph in a paragraph node with text nodes inside.
How do I pass the Jira Automation webhook secret if the sender cannot set headers?
Atlassian lets you add the secret to the end of the incoming webhook URL as its last path segment. Paste that full URL into the sender.
Does Jira Automation check AyeWatch's webhook signature?
No. The incoming webhook trigger checks only its own secret, and it answers 200 to well-formed requests even when the secret is wrong. Use the rule's audit log to confirm runs.
Will AyeWatch retries create duplicate Jira issues?
They can if a delivery reached Jira but the reply was lost. AyeWatch sends the same update_id on every retry, so store it and skip repeats.
