Skip to content

Jira Issues for Planned Controls

When a revision of a model plans a control that has no ticket, the application can tell a Jira Automation rule of yours. The rule makes the issue in Jira and writes its key back to the control. NetBlueprint Forge holds no Jira token and never calls Jira: Jira holds the rule, and the rule calls the application with a key you give it.

The recipe follows Atlassian’s documentation of Automation’s Incoming webhook trigger, its {{webhookData}} and {{createdIssue}} smart values and its Send web request action, as it read on 29 November 2026.

  • A Jira Cloud site where you may make Automation rules for the project the issues go in.
  • In NetBlueprint Forge, an administrator, for the service account, the ticket system and the webhook.

The steps go back and forth between the two once: the rule’s address is made in Jira, and the key the rule uses is made in NetBlueprint Forge.

1. In NetBlueprint Forge: a Ticket System for Jira

Section titled “1. In NetBlueprint Forge: a Ticket System for Jira”
  1. Under Administration, open Ticket Systems and add one from the Jira preset, with your site’s address, such as https://your-site.atlassian.net/browse/{id}.
  2. Note its ID for Your Automation, shown on its card. The rule needs it.

2. In NetBlueprint Forge: a Service Account and Its Key

Section titled “2. In NetBlueprint Forge: a Service Account and Its Key”
  1. Under Administration, open Service Accounts and add one, such as Jira Automation, with the Author role only: that is what lets it link a ticket to a control.
  2. Make a key for it and copy the key. It is shown once.
  3. If your organization limits where keys may be used from, allow Atlassian’s outgoing addresses as Atlassian publishes them, or leave the key’s networks empty.
  1. In the project’s settings, open Automation and create a rule.
  2. Trigger: choose Incoming webhook. Jira shows the rule’s Webhook URL and its Secret. Copy both: they go in NetBlueprint Forge in step 4. If the trigger asks which work items the rule runs with, choose the one that takes none from the webhook: the rule makes its own.
  3. Condition: choose the advanced compare condition ({{smart values}} condition), with the first value {{webhookData.event}}, equals, and the second value control.needs_ticket. A test from NetBlueprint Forge, and any other event, then stops here.
  4. Action: choose Create work item (or Create issue) in your project, of the type you use for this work, with:
    • Summary: {{webhookData.control.id}}: {{webhookData.control.name}}

    • Description:

      Planned in the threat model {{webhookData.model.name}}, revision {{webhookData.model.revision}}.
      Owner in the model: {{webhookData.control.owner}}. Due: {{webhookData.control.dueDate}}.
      {{webhookData.model.url}}
    • Set a due date, a label or a component from the same values if you use them.

  5. Action: choose Send web request, with:
    • Web request URL: https://forge.example.com/api/models/{{webhookData.model.id}}/controls/{{webhookData.control.id}}/links/TICKET-SYSTEM-ID, with your instance’s address in place of forge.example.com and the ID from step 1 in place of TICKET-SYSTEM-ID.

    • HTTP method: PUT.

    • Web request body: Custom data:

      {"outsideId": "{{createdIssue.key}}"}
    • Headers: Authorization with the value Bearer followed by the service account’s key from step 2, and Content-Type with application/json. Mark the authorization header as hidden if your Jira offers it.

  6. Name the rule, such as Issues for Planned Controls, and turn it on.

{{createdIssue}} is the issue the rule made just before; Atlassian documents that any property of an issue, such as its key, can be read from it. If the key comes back empty in the audit log, put the web request inside a branch for the created issue and use {{issue.key}}.

  1. Under Administration, open Webhooks and choose Add a Webhook.
  2. Kind and Name: Jira Automation, named after the rule.
  3. Address: the rule’s Webhook URL, and its Secret as the Token. It is sent in the X-Automation-Webhook-Token header, as Atlassian advises, and kept sealed.
  4. Events: A Planned Control Needs a Ticket only. Leave Include Restricted Models off unless the Jira project is one only the people who may see those models can read.
  5. Review and Add, then Send a Test. A test is the event ping: the rule’s audit log shows that it ran and stopped at its condition. Jira’s address answers 200 to every well-formed request, so the audit log, not the test’s answer, tells you the rule ran.
  1. An author saves a revision in which a control is planned or proposed and has no ticket.
  2. The application posts control.needs_ticket to the rule’s address, with the control’s id, name, status, owner and due date, and the model’s id, name, revision and address.
  3. The rule makes the issue and calls the application with its key. The control’s Controls tab shows the issue, marked as written by an integration.
  4. The ticket’s link is announced as control.ticket_linked to any webhook that takes it. A status written back later is not announced, so the rule is not started again by its own write.

A control that stays planned in later revisions is not announced again. If the rule failed, link the issue on the model’s Controls tab, or look at the webhook’s Recent Deliveries and choose Send Again once the rule works.

Jira’s Regenerate stops the old secret at once. Open the webhook in NetBlueprint Forge, choose Change, and enter the new one as the Token. If the rule’s address changes to another server, the application asks for the token again: a token is never sent anywhere but where it was made.