Get Issue SLA
jira_get_issue_slaCalculate SLA metrics for Jira issues including cycle time, lead time, and time in status using configurable working hours.
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")
Args: ctx: The FastMCP context. issue_key: The Jira issue key. metrics: Comma-separated list of metrics to calculate. working_hours_only: Use working hours only for calculations. include_raw_dates: Include raw date values in response.
Returns: JSON string with calculated SLA metrics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue_key | Yes | Jira issue key (e.g., 'PROJ-123', 'ACV2-642') | |
| 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'. | |
| 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. | |
| include_raw_dates | No | Include raw date values in the response |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |