Skip to content

[Bug]: JQL reserved words in project keys not automatically quoted #966

@hteichmann-strato

Description

@hteichmann-strato

Summary

When a Jira project key happens to be a JQL reserved word (e.g. IF), the MCP passes the value unquoted and Jira rejects the query with:

Error in the JQL Query: 'IF' is a reserved JQL word. You must surround it in quotation marks to use it in a query.

Steps to Reproduce

Use jira_search with a JQL query referencing a project whose key is a reserved word:

project = IF AND text ~ "universal-builder" AND issuetype in (Story, Task, Epic) ORDER BY updated DESC

Expected Behavior

The MCP should automatically quote values in project = and project IN (...) positions that are JQL reserved words, producing:

project = "IF" AND text ~ "universal-builder" AND issuetype in (Story, Task, Epic) ORDER BY updated DESC

Actual Behavior

The raw unquoted value is forwarded to the Jira API, which returns an error.

Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions