Skip to main content
Glama
endBlockedPeriod.ts1.42 kB
/** * Blocked Period Termination Handler * * This utility handles the termination of blocked periods in an issue's lifecycle. * It processes the end of a blocked state, capturing the timestamp and details of when * and why the blockage was resolved. This information is critical for calculating blocked time * metrics, analyzing resolution patterns, and identifying effective unblocking strategies. * The module ensures accurate tracking of workflow impediments to support process improvement efforts. */ import type { BlockedPeriod } from './types/durationAssessment.types' /** * Blocked Period Termination Handler * * This utility handles the termination of blocked periods in an issue's lifecycle. * It processes the end of a blocked state, capturing the timestamp and details of when * and why the blockage was resolved. This information is critical for calculating blocked time * metrics, analyzing resolution patterns, and identifying effective unblocking strategies. * The module ensures accurate tracking of workflow impediments to support process improvement efforts. * @param currentBlockedPeriod Current blocked period object * @param timestamp Timestamp when block ended * @returns Updated blocked period with end time */ export function endBlockedPeriod(currentBlockedPeriod: BlockedPeriod, timestamp: string): BlockedPeriod { return { ...currentBlockedPeriod, endTime: timestamp, } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tbreeding/jira-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server