Get Issue SLA
jira_get_issue_slaCalculate SLA metrics for a Jira issue, including cycle time, lead time, time in status, and due date compliance. Filter by working hours for accurate business-time measurements.
Instructions
Calculate SLA metrics for a Jira issue.
Computes various time-based metrics including cycle time, lead time, time spent in each status, due date compliance, and more.
Working hours can be configured via environment variables:
JIRA_SLA_WORKING_HOURS_ONLY: Enable working hours filtering (true/false)
JIRA_SLA_WORKING_HOURS_START: Start time (e.g., "09:00")
JIRA_SLA_WORKING_HOURS_END: End time (e.g., "17:00")
JIRA_SLA_WORKING_DAYS: Working days (e.g., "1,2,3,4,5" for Mon-Fri)
JIRA_SLA_TIMEZONE: Timezone for calculations (e.g., "America/New_York")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metrics | No | Comma-separated list of SLA metrics to calculate. Available: cycle_time, lead_time, time_in_status, due_date_compliance, resolution_time, first_response_time. Defaults to configured metrics or 'cycle_time,time_in_status'. | |
| issue_key | Yes | Jira issue key (e.g., 'PROJ-123', 'ACV2-642') | |
| include_raw_dates | No | Include raw date values in the response | |
| working_hours_only | No | Calculate using working hours only (excludes weekends/non-business hours). Defaults to value from JIRA_SLA_WORKING_HOURS_ONLY environment variable. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |