Table: jira_sprint - Query Jira Sprints using SQL
Jira Sprints are a key component of the agile project management offered by Jira. They represent a set timeframe during which specific work has to be completed and made ready for review. Sprints are used in the Scrum framework and they help teams to better manage and organize their work, by breaking down larger projects into manageable, time-boxed periods.
Table Usage Guide
The jira_sprint
table provides insights into the sprints within a Jira project. As a project manager or a team lead, you can explore details about each sprint, including its progress, status, and associated issues. Use this table to track the progress of ongoing sprints, plan for future sprints, and review the performance of past sprints.
Examples
Basic info
Explore which projects are currently active, along with their respective timelines. This can assist in understanding the progress and schedules of different projects.
select id, name, board_id, state, start_date, end_date, complete_datefrom jira_sprint;
select id, name, board_id, state, start_date, end_date, complete_datefrom jira_sprint;
List sprints due in the next week
Explore which sprints are due in the coming week. This can help in planning and prioritizing tasks accordingly.
select id, name, board_id, state, start_date, end_datefrom jira_sprintwhere end_date > current_date and end_date <= (current_date + interval '7' day);
select id, name, board_id, state, start_date, end_datefrom jira_sprintwhere end_date > date('now') and end_date <= date('now', '+7 day');
List active sprints
Explore which sprints are currently active in your Jira project. This query helps in gaining insights into ongoing tasks and managing project timelines effectively.
select id, name, board_id, start_date, end_datefrom jira_sprintwhere state = 'active';
select id, name, board_id, start_date, end_datefrom jira_sprintwhere state = 'active';
List issues in a sprints
Discover the segments that require attention by identifying active tasks within a particular project phase, helping to allocate resources more effectively and manage project timelines.
select id, key, summary, project_key, status, assignee_display_name, assignee_account_id, duedatefrom jira_issuewhere sprint_ids @> '2';
Error: SQLite does not support array contains operator '@>'.
Count of issues by sprint
This query is useful for understanding the distribution of tasks across different sprints in a project. It provides an overview of workload allocation, helping to identify if certain sprints are overloaded with issues.
select b.name as board_name, s.name as sprint_name, count(sprint_id) as num_issuesfrom jira_board as b join jira_sprint as s on s.board_id = b.id left join jira_issue as i on true left join jsonb_array_elements(i.sprint_ids) as sprint_id on sprint_id :: bigint = s.idgroup by board_name, sprint_nameorder by board_name, sprint_name;
select b.name as board_name, s.name as sprint_name, count(sprint_id) as num_issuesfrom jira_board as b join jira_sprint as s on s.board_id = b.id left join jira_issue as i left join json_each(i.sprint_ids) as sprint_id on sprint_id.value = s.idgroup by board_name, sprint_nameorder by board_name, sprint_name;
Schema for jira_sprint
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
board_id | bigint | The ID of the board the sprint belongs to.z | |
complete_date | timestamp with time zone | Date the sprint was marked as complete. | |
end_date | timestamp with time zone | The projected time of completion of the sprint. | |
id | bigint | The ID of the sprint. | |
login_id | text | =, !=, ~~, ~~*, !~~, !~~* | The unique identifier of the user login. |
name | text | The name of the sprint. | |
self | text | The URL of the sprint details. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
start_date | timestamp with time zone | The start timestamp of the sprint. | |
state | text | Status of the sprint. | |
title | text | Title of the resource. |
Export
This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- jira
You can pass the configuration to the command with the --config
argument:
steampipe_export_jira --config '<your_config>' jira_sprint