Skip to main content
Glama
determineFieldCategory.ts970 B
/** * Field category determination for Jira API * * This file contains logic for categorizing Jira fields based on their properties. * The determineFieldCategory function analyzes field metadata and assigns appropriate * categories (Required, System, Custom, or Optional) to help with field organization * and prioritization in the UI. This categorization is essential for properly displaying * and handling different types of fields when working with Jira issues. */ import { FieldCategory } from '../types/fieldMetadata.types' import type { JiraFieldMetadata } from '../types/fieldMetadata.types' /** * Determines the category of a field based on its properties */ export function determineFieldCategory(field: JiraFieldMetadata): FieldCategory { if (field.required) { return FieldCategory.REQUIRED } if (field.schema.system) { return FieldCategory.SYSTEM } if (field.custom) { return FieldCategory.CUSTOM } return FieldCategory.OPTIONAL }

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