Skip to main content
Glama

JIRA MCP Server

issue-dates.formatter.ts1.11 kB
/** * Issue Dates Formatter * * Handles formatting of issue date information * Extracted from IssueFormatter to reduce complexity */ import type { Issue } from "../models/issue.models"; /** * Formats issue date information (created, updated) */ export class IssueDatesFormatter { /** * Format the dates section if at least one date exists */ formatDates(issue: Issue): string { if (!this.hasDates(issue)) { return ""; } const dateLines: string[] = []; if (issue.fields?.created) { const createdDate = new Date(issue.fields.created).toLocaleString(); dateLines.push(`**Created**: ${createdDate}`); } if (issue.fields?.updated) { const updatedDate = new Date(issue.fields.updated).toLocaleString(); dateLines.push(`**Updated**: ${updatedDate}`); } if (dateLines.length === 0) { return ""; } return `## Dates\n${dateLines.join("\n")}\n\n`; } /** * Check if issue has any date information */ private hasDates(issue: Issue): boolean { return !!(issue?.fields?.created || issue?.fields?.updated); } }

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/Dsazz/mcp-jira'

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