Set up alerting for Jira data
The Jira data source supports Grafana Alerting, allowing you to create alerts based on Jira issue metrics. Use alerts to get notified when issue counts exceed thresholds, SLA targets are at risk, or sprint velocity changes significantly.
For general information about Grafana Alerting, refer to Grafana Alerting.
Before you begin
Before you create alerts based on Jira data:
- Ensure your Jira data source is configured and working.
- Verify your query returns numeric data (alerts require numeric values to evaluate conditions).
- Plan your alert thresholds based on your team’s workflow.
Create an alert rule
To create an alert rule based on Jira data:
- Open a dashboard panel that uses the Jira data source.
- Click the panel title and select Edit.
- Click the Alert tab.
- Click Create alert rule from this panel.
- Configure the alert rule:
- Rule name: Enter a descriptive name for the alert.
- Evaluate every: Set how often the alert condition is evaluated.
- For: Set how long the condition must be true before alerting.
- Define the alert condition based on your query results.
- Configure notifications and labels.
- Click Save rule.
For detailed instructions, refer to Create Grafana-managed alert rules.
Common alerting use cases
The following examples demonstrate common alerting scenarios with Jira data.
Alert on high issue count
Get notified when the number of open issues exceeds a threshold:
- Create a query:
- Select Fields: Key
- Add JQL Filter:
project = 'Your Project' AND status != done
- Add the Count transformation or use the Reduce transformation with Count.
- Set the alert condition:
WHEN last() OF query IS ABOVE 50
Alert on overdue issues
Get notified when issues are past their due date:
- Create a query:
- Select Fields: Key, Due Date
- Add JQL Filter:
project = 'Your Project' AND due < now() AND status != done
- Add the Count transformation.
- Set the alert condition:
WHEN last() OF query IS ABOVE 0
Alert on sprint burndown
Get notified when remaining story points exceed expected values:
- Create a query:
- Select Fields: Story point estimate
- Add JQL Filter:
project = 'Your Project' AND sprint in openSprints() AND status != done
- Add the Reduce transformation with Total calculation.
- Set the alert condition based on your expected burndown rate.
Alert on critical issues
Get notified immediately when critical or blocker issues are created:
- Create a query:
- Select Fields: Key
- Add JQL Filter:
project = 'Your Project' AND priority IN ('Critical', 'Blocker') AND created >= -1h
- Add the Count transformation.
- Set the alert condition:
WHEN last() OF query IS ABOVE 0 - Set Evaluate every to
5mfor quick notification.
Transform data for alerting
Alerts require numeric data. Use transformations to convert Jira issue data into alertable metrics:
Count issues
Use the Reduce transformation to count issues:
- Add the Reduce transformation.
- Set Mode: Series to rows.
- Set Calculations: Count.
Sum numeric fields
Use the Reduce transformation to sum story points or other numeric fields:
- Add the Reduce transformation.
- Set Mode: Series to rows.
- Set Calculations: Total.
Group and aggregate
Use the Group By transformation to create metrics by category:
- Add the Group By transformation.
- Group by a field (for example, Status or Priority).
- Aggregate another field with Count or Total.
Alert notification channels
Configure where alert notifications are sent:
- Slack
- PagerDuty
- Microsoft Teams
- Webhooks
- And more
For instructions on setting up notification channels, refer to Configure contact points.
Best practices
Consider the following best practices when setting up Jira alerts:
- Set appropriate evaluation intervals: Jira data doesn’t change as frequently as metrics data. Evaluating every 5-15 minutes is usually sufficient.
- Use the “For” duration: Prevent alert flapping by requiring the condition to be true for a period (for example, 5 minutes) before alerting.
- Include context in notifications: Add labels and annotations to include project name, issue count, and links to relevant dashboards.
- Test your alerts: Use the Test rule feature to verify your alert conditions work as expected.



