Skip to content

Open a DueReason approval request when a Jira issue changes status

Move a Jira issue into a status you configure and DueReason opens a signed approval request automatically, with no polling loop or custom script.

Updated · 7 min read

In short

  • An inbound Jira endpoint maps one project key and one issue status to one DueReason action: move an issue in that project into that status and a real approval request opens, with a signed grant and a ledger entry behind it, not just a notification.
  • Jira has no HMAC signature header, so the endpoint is authenticated differently from GitHub and Linear: a shared secret you generate travels in a custom `X-DueReason-Jira-Secret` header and is compared in constant time, because Jira Cloud's own webhook registration has no HMAC-secret field.
  • That also changes where you register the webhook: Jira's admin System WebHooks page cannot add a custom header at all, so the URL has to be wired up through a Jira Automation rule's "Send web request" action instead, with the web request body set to Issue data (Jira format).
  • Only a delivery whose event is `jira:issue_updated`, whose changelog actually carries a status-field change, and whose project key and new status name match the endpoint's configuration opens a request -- a comment, an unrelated field edit, or an issue merely sitting in the target status is silently ignored.
  • GitHub and Linear are the other two sources on the same shape: a configured repository and label (GitHub), or a team key and target workflow state (Linear), open the request instead of a project key and status. A console-only `custom` source also exists for wiring up any other system's webhook.

Moving a Jira issue into In Review, Ready for release or Needs budget is already how a lot of teams flag "this is finished, someone has to sign off" -- the status itself carries the decision point, long before anyone writes it down anywhere else. An inbound Jira endpoint turns that status transition into a real DueReason approval request the moment it happens, with a signed grant and a ledger entry behind the decision, instead of a comment someone has to remember to act on.

What actually happens

Each inbound endpoint ties one Jira project (by its project key, e.g. ENG) and one status name (e.g. Done) to one DueReason action. The moment an issue in that project moves into that status, DueReason opens a request against the action you chose, pre-filled from the event: a title such as Jira: ENG ENG-42 moved to "Done", a reason naming the issue and linking back to it in Jira, and whatever payload fields your template maps from the event. From there it is a normal DueReason request -- it goes through the action's own workflow, routes to the approvers you configured, and produces the same signed, single-use grant any other request does.

Set it up in DueReason first

In Settings > Inbound webhooks, Add endpoint with source Jira asks for four things: Project key (the Jira project key, e.g. ENG), Target status (the exact issue status name that opens a request when an issue moves into it, e.g. Done), Action (which DueReason action the request opens against, picked from your organization's configured actions), and a Payload template -- JSON mapping that action's payload fields to Jira event data, for example { "title": "{{issue.fields.summary}}", "url": "{{browseUrl}}" }. You also paste in a Jira webhook secret here: a value *you* generate, not one DueReason issues, and not an HMAC key -- it is compared against the raw value Jira sends back in a header, so you'll paste the exact same value into Jira's Automation rule a moment later, and DueReason never shows it again after this step.

Creating the endpoint hands you back one webhook URL on your own domain, shaped /api/webhooks/jira-inbound/{endpointId}. Nothing fires until that URL is wired up on Jira's side.

Then wire it up in Jira

Jira has no per-event HMAC signature the way GitHub and Linear do, so the endpoint authenticates deliveries with a shared secret instead: the raw value you pasted above has to arrive on every request in a custom X-DueReason-Jira-Secret header, compared against the stored secret in constant time. That is also why the setup path is different: Jira Cloud's admin System > WebHooks page has no way to add a custom header to a webhook at all, so it cannot carry this secret. Instead, add a Jira Automation rule: trigger it on Issue transitioned, scoped to your project, with a condition on the target status; for the action, add Send web request with the endpoint URL as the webhook URL, method POST, a custom header named X-DueReason-Jira-Secret set to your secret, and the web request body set to Issue data (Jira format) -- the payload shape this endpoint expects, carrying the event type, the issue and its changelog. An endpoint with no matching secret, or a request that didn't carry it at all, is rejected before the project or status is even read.

Jira also sends no delivery-id header and no per-event-type header the way GitHub's X-GitHub-Delivery or Linear's Linear-Delivery do -- both the event type (jira:issue_updated) and the changed fields live in the request body itself, so the endpoint reads the whole body before it can tell whether a delivery matches anything, rather than rejecting on a missing header up front the way the GitHub and Linear endpoints do.

What matches, and what's quietly ignored

Several things all have to line up for a delivery to open a request: the body's webhookEvent field has to be exactly jira:issue_updated, its changelog.items array has to contain an entry with field: "status" -- meaning the status actually changed on *this* delivery, not some unrelated field (a description edit, say) on an issue that already happens to sit in the target status -- and that entry's new status name has to match the endpoint's configured target status exactly. On top of that, the issue's own project key has to match what the endpoint was configured with. None of that is an error state: a delivery that doesn't match any of it is simply a no-op, and DueReason still answers Jira with success so the delivery isn't retried. The one case that does fail outright is a delivery with no matching or no secret header at all, or a URL with no matching endpoint -- those come back as real HTTP errors (401 and 404 respectively).

Jira's own webhook payload carries no delivery id that is reliable across every way an organization can register the webhook, so retries are deduplicated differently here than for GitHub or Linear: the endpoint falls back to the issue's own id combined with the changelog entry's id, which together identify this one transition, and records that combined id against the endpoint before doing anything else -- so a resend of a delivery already acted on is recognized as the same event and answered without opening a second request.

Mapping Jira's fields into the request

The payload template is plain JSON with {{dot.path}} placeholders resolved against the event DueReason received: issue.* for the transitioned issue itself (key, id, and its fields object -- summary, project, and whatever other fields Jira's payload carries), changelog.* for the raw changelog entry, user.* for who made the change, and a top-level browseUrl DueReason derives for you from the issue's own API link, since Jira's webhook payload carries no ready-made browse URL on its own. A field that is *only* one placeholder keeps that field's own type rather than being stringified, exactly like the GitHub and Linear sources; a path the event doesn't actually have resolves to null rather than breaking the delivery, and what actually gates the request is still the target action's own payload schema -- a template that maps a required field to a path the event never carries fails the same validation a manually-filed request with a missing field would.

Why this is a request, not a notification

A comment or a bot reply triggered by a Jira status change tells someone a decision is needed; it does not produce anything that records who decided, under what workflow, or that can be checked again later. Because this opens a real DueReason request, the usual workflow applies in full -- routing to the right approver group, requiring a written reason where the action demands one, producing a signed grant once it's answered -- and the request, its decision and its grant all sit on the same hash-chained ledger as a request filed from the console or the API. The no-code webhook recipe covers the opposite direction -- reacting to DueReason's own approval.approved event once a request like this is decided -- if you want to wire what happens *after* the approval, too. The equivalent GitHub and Linear setups are covered in the GitHub issue/PR guide and the Linear issue guide: same shape, a labeled issue/PR or a workflow-state move in place of a status transition.

What's not here yet

This closes the three planned inbound sources (GitHub, Linear, Jira). The console's "send a sample event" preview, available for the GitHub and custom sources, is not available for Jira either -- there is no fixture-based dry run before you wire up a real Jira Automation rule; the first real delivery is also the first thing you can check in the endpoint's delivery log. There is no installable Jira app or Marketplace listing to add this from Jira's own app directory -- every endpoint is configured by hand, per organization, in DueReason's own console, against a Jira Automation rule you set up yourself the same way you would for any other integration.

Questions

Does commenting on an issue, or editing an unrelated field, also open a request?
No. Only a jira:issue_updated delivery whose changelog carries a field: "status" entry -- meaning the status actually changed on that delivery -- matches at all, and the new status name and project key then have to match the endpoint's configuration. A comment, any other field edit, or an issue that already sits in the target status being touched for an unrelated reason is ignored, with no request opened and no error either.
Why does Jira need a different secret mechanism from GitHub and Linear?
Jira Cloud's own webhook registration has no HMAC-secret field to sign deliveries with, so there is nothing to verify a signature against. Instead, the raw secret value itself has to travel on every delivery in a custom X-DueReason-Jira-Secret header, and the endpoint compares it to its stored secret in constant time rather than checking a computed signature.
Can I register this webhook from Jira's admin System > WebHooks page instead of an Automation rule?
No. That admin page has no way to add a custom HTTP header to a webhook, and this endpoint's authentication depends entirely on the X-DueReason-Jira-Secret header arriving on every delivery. A Jira Automation rule's Send web request action does support custom headers, so that is the path this integration needs.
What if Jira retries a delivery, since it has no delivery-id header?
The endpoint falls back to the issue's own id combined with the changelog entry's id to identify one transition, and records that combined id against the endpoint before doing anything else, so a retried delivery for the same transition is recognized as the one already acted on rather than opening a second request.
Can I wire this up for GitHub or Linear instead of Jira?
Yes, both. Pick source GitHub and configure a repository and label, or pick source Linear and configure a team key and target workflow state -- either one opens the request the same way Jira's project-and-status match does. Both of those use an HMAC signature header instead of Jira's shared secret header.
Can I preview what a Jira status change would file before wiring up the real automation rule?
Not yet. The console's "send a sample event" dry run exists for the GitHub and custom sources today, not for Jira, so the first real delivery against your endpoint is also the first one you can inspect, in the endpoint's delivery log.
What happens if my payload template references a field the event doesn't have?
The template renders that placeholder as null rather than failing the delivery. The request still opens, but the target action's own payload schema validates it exactly as it would any other request, so a required field mapped to a path the event never carries fails that validation the same way a manually-filed request with a missing field would.

Open your first request from a Jira status change

Add an inbound Jira endpoint in Settings > Inbound webhooks, wire a Jira Automation rule's Send web request action at it, and move an issue into the configured status to see the request appear.

Create your account

Sources

This guide explains the regulation as we read it; it is not legal advice. Check the official text and your national law, which may add obligations.

Start with DueReason

Create a free account, try it live, or talk to us about your workflow.

Get product updates