Configuring Rules

Rules define exactly when Integration Hub should create PagerDuty incidents from Linear issues. Each rule combines filtering criteria with PagerDuty routing and bidirectional sync configuration.

Before You Create Rules

Prerequisites:
  • ✓ PagerDuty account connected
  • ✓ Linear workspace connected
  • ✓ At least one webhook created for a Linear team
  • ✓ Identified which PagerDuty service should receive incidents

Understanding Rules

A rule consists of three main components:

  1. Filtering Criteria - Which Linear issues should trigger incidents
  2. PagerDuty Routing - Where incidents should be created and with what urgency
  3. Bidirectional Sync - How status changes should sync between systems

Creating a Rule

Step 1: Navigate to Rules

  1. Log in to Integration Hub
  2. Navigate to the Rules tab in the main navigation
  3. Click the Create Rule button
Rules tab with no rules

Screenshot: Empty rules list

Step 2: Select Webhook

Choose which Linear team (webhook) this rule applies to. The rule will only evaluate issues from the selected team.

Webhook selection in rule creation

Screenshot: Selecting webhook for rule

Step 3: Configure Filtering Criteria

Define which issues from the selected team should create PagerDuty incidents. You can filter by:

Priority

Select one or more Linear priorities that should trigger incidents:

Tip: Start by monitoring only Urgent and High priority issues. You can expand to other priorities once you're comfortable with the integration.
Priority selection in rule

Screenshot: Selecting priorities

Status Types

Select which Linear workflow states should trigger incidents. Linear groups statuses into types:

Important: Selecting "Completed" or "Canceled" is usually not recommended, as these represent resolved issues. Focus on active states like Triage, Unstarted, and Started.
Status type selection in rule

Screenshot: Selecting status types

Projects

Filter by specific Linear projects within the team. This allows you to:

Example: If your team has "Production Issues," "Feature Work," and "Internal Tools" projects, you might create a rule that only monitors the "Production Issues" project with Urgent priority.

Project Selection:

Project selection in rule

Screenshot: Selecting specific projects

Labels

Filter by Linear labels for even more precise control. Labels are custom tags you can add to issues in Linear:

Pro Tip: Use labels consistently across your Linear workspace to make rule filtering more effective. Create label standards for your team (e.g., always use "Production" for production issues).

Label Match Modes:

Choose how labels should be evaluated when determining if an issue matches the rule:

Mode Behavior Use Case
None Ignores labels entirely. Incident created regardless of labels on the issue. Use when labels aren't relevant to your incident criteria.
Any Incident created if the Linear issue has at least one of the selected labels. Use for broad matching (e.g., trigger on "Bug" OR "Critical" OR "Production").
All Incident created only if the Linear issue has all of the selected labels. Use for strict matching (e.g., require both "Production" AND "Customer-Facing").
Important: Label filtering works in combination with other rule criteria (team, priority, status, project). All rule conditions must match for an incident to be created.

Label Selection Examples:

Complete Example Rule:

  • Team: Backend Team
  • Priority: Urgent
  • Status: Triage, Started
  • Label Match Mode: All
  • Labels: ["Production", "Customer-Facing"]

Result: Creates incident ONLY for Urgent backend issues in Triage or Started status that have BOTH "Production" AND "Customer-Facing" labels.

Label selection in rule

Screenshot: Selecting labels and match mode for filtering

Step 4: Configure PagerDuty Routing

Select PagerDuty Service

Choose which PagerDuty service should receive incidents from matching Linear issues. The dropdown shows all services from your connected PagerDuty account.

Automatic Webhook Creation: When you save this rule, Integration Hub will automatically create a webhook in PagerDuty for the selected service. This webhook enables bidirectional sync—when you acknowledge or resolve incidents in PagerDuty, Linear issues are updated automatically.
PagerDuty service selection

Screenshot: Selecting PagerDuty service

Set Incident Urgency

Choose the urgency level for created incidents:

Note: Incident urgency affects PagerDuty's notification and escalation behavior. High-urgency incidents typically page on-call responders immediately.

Step 5: Configure Bidirectional Sync

Define how PagerDuty incident status changes should update Linear issues:

Acknowledged Status

When you acknowledge an incident in PagerDuty, the corresponding Linear issue will move to this status.

Acknowledged status selection

Screenshot: Selecting acknowledged status mapping

Resolved Status

When you resolve an incident in PagerDuty, the corresponding Linear issue will move to this status.

Resolved status selection

Screenshot: Selecting resolved status mapping

Reverse Sync: Bidirectional sync also works in reverse! When a Linear issue is marked as "Completed" or "Canceled" status type, the corresponding PagerDuty incident is automatically resolved.

Step 6: Save the Rule

  1. Review all your selections
  2. Click Save Rule
  3. Integration Hub will:
    • Create the rule configuration
    • Create a PagerDuty webhook for the selected service (if not already created)
    • Begin monitoring for matching Linear issues
  4. You'll see a success message and the rule will appear in your rules list
Successfully created rule

Screenshot: Rule created successfully

Understanding Rule Logic

Rules use AND logic across filter types and OR logic within each filter type (except labels, which depend on the Label Match Mode):

Example Rule (Label Match Mode: Any):

  • Priorities: Urgent, High
  • Status Types: Triage, Started
  • Projects: "Production Issues"
  • Label Match Mode: Any
  • Labels: "Bug", "Incident"

This matches:

Issues with (Urgent OR High priority) AND (Triage OR Started status) AND ("Production Issues" project) AND ("Bug" OR "Incident" label)

Example Rule (Label Match Mode: All):

  • Priorities: Urgent
  • Status Types: Triage
  • Projects: "Production Issues"
  • Label Match Mode: All
  • Labels: "Production", "Customer-Facing", "Security"

This matches:

Issues with (Urgent priority) AND (Triage status) AND ("Production Issues" project) AND ("Production" AND "Customer-Facing" AND "Security" labels—all three required)

Example Rule (Label Match Mode: None):

  • Priorities: High, Urgent
  • Status Types: Started
  • Projects: (all projects)
  • Label Match Mode: None
  • Labels: (none selected)

This matches:

Issues with (High OR Urgent priority) AND (Started status) AND (any project). Labels are completely ignored—incident created regardless of what labels the issue has.

Managing Rules

Viewing Rules

The rules list displays:

Editing Rules

  1. Click on a rule in the rules list
  2. Update any configuration settings
  3. Click Save to apply changes
Note: Changes to rules take effect immediately. New Linear issue updates will be evaluated against the updated criteria.

Disabling Rules

To temporarily stop a rule without deleting it:

  1. Toggle the Enabled switch to off
  2. The rule will stop creating incidents but remain configured
  3. Re-enable anytime by toggling the switch back on

Deleting Rules

  1. Find the rule in your rules list
  2. Click the Delete button (trash icon)
  3. Confirm the deletion
Important: Deleting a rule does NOT delete existing PagerDuty incidents that were created by this rule. It only stops creating new incidents for future Linear issue updates.

Rule Examples

Example 1: Critical Production Issues

Name: "Critical Production Bugs"
Webhook: Engineering Team
Priorities: Urgent
Status Types: Triage, Started
Projects: "Production Issues"
Label Match Mode: Any
Labels: "Bug", "Outage"
PagerDuty Service: Production On-Call
Urgency: High
Acknowledged Status: In Progress
Resolved Status: Done

Use Case: Page on-call engineers immediately for urgent production bugs and outages. Uses "Any" mode to trigger on either "Bug" OR "Outage" labels.

Example 2: High-Priority Customer Issues

Name: "Customer-Impacting Production Issues"
Webhook: Support Team
Priorities: High, Urgent
Status Types: Triage, Unstarted, Started
Projects: (all projects)
Label Match Mode: All
Labels: "Production", "Customer-Facing"
PagerDuty Service: Customer Support Escalation
Urgency: High
Acknowledged Status: In Review
Resolved Status: Resolved

Use Case: Ensure high-severity customer-impacting issues in production get immediate attention. Uses "All" mode to require BOTH "Production" AND "Customer-Facing" labels—preventing false positives from non-production customer issues.

Example 3: Security Incidents

Name: "Security Issues"
Webhook: Security Team
Priorities: Urgent, High
Status Types: Triage
Projects: (all projects)
Label Match Mode: Any
Labels: "Security", "Vulnerability", "Data-Breach"
PagerDuty Service: Security On-Call
Urgency: High
Acknowledged Status: Investigating
Resolved Status: Remediated

Use Case: Route security issues to security team immediately when reported. Uses "Any" mode to trigger on ANY security-related label.

Example 4: All High-Priority Issues (Labels Ignored)

Name: "All High Priority Work"
Webhook: Engineering Team
Priorities: High, Urgent
Status Types: Triage, Unstarted, Started
Projects: (all projects)
Label Match Mode: None
Labels: (none)
PagerDuty Service: Engineering On-Call
Urgency: Low
Acknowledged Status: In Progress
Resolved Status: Done

Use Case: Monitor all high-priority work regardless of labels. Uses "None" mode to ignore labels entirely—incident created for any high/urgent issue in active states.

Best Practices

Start Simple

Create one rule initially with narrow criteria (e.g., only Urgent priority). Test thoroughly before adding more complex rules.

Use Descriptive Names

Name your rules clearly so you can identify them at a glance (e.g., "Critical Production Issues" instead of "Rule 1").

Avoid Overlapping Rules

Be careful not to create multiple rules with overlapping criteria, as this could create duplicate incidents for the same Linear issue.

Review and Refine

Periodically review your rules to ensure they're still relevant and adjust criteria based on your team's workflow changes.

Leverage Projects and Labels

Use projects and labels in Linear consistently to make rule filtering more effective and reduce false positives.

Test Your Rules

After creating a rule, test it by creating or updating a Linear issue that should match the criteria. Verify the incident is created in PagerDuty.

Troubleshooting

Incidents Not Being Created

Problem: Linear issues aren't creating PagerDuty incidents

Solution:

Duplicate Incidents

Problem: Multiple incidents created for the same Linear issue

Solution:

Bidirectional Sync Not Working

Problem: Linear issues aren't updating when PagerDuty incidents are acknowledged/resolved

Solution:

Next Steps

Now that you've configured rules, learn more about how the integration works:

  1. Understanding Bidirectional Sync →
  2. Review Best Practices →
  3. Troubleshooting Guide →

Quick Reference

Rule Configuration Checklist:

  • ✓ Select webhook (Linear team)
  • ✓ Choose priorities to monitor
  • ✓ Select status types (avoid Completed/Canceled)
  • ✓ Filter by projects (optional)
  • ✓ Choose label match mode (None / Any / All)
  • ✓ Select labels if using Any or All mode (optional)
  • ✓ Select PagerDuty service
  • ✓ Set incident urgency
  • ✓ Map acknowledged status
  • ✓ Map resolved status
  • ✓ Test the rule after creation