Skip to main content
Glama

jira_update_issue

Modify existing Jira issues by updating fields like summary, description, priority, or assignee using the issue key.

Instructions

Update an existing Jira issue

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issue_keyYesIssue key (e.g., PROJ-123)
fieldsYesFields to update

Implementation Reference

  • The _update_issue method that executes the core logic for the jira_update_issue tool. It processes the input arguments, constructs the update fields dictionary, calls the Jira client's update_issue_field method, and returns a success message.
    async def _update_issue(self, arguments: dict) -> List[TextContent]:
        """Update an existing issue"""
        issue_key = arguments["issue_key"]
        fields = arguments["fields"]
        
        update_fields = {}
        if "summary" in fields:
            update_fields["summary"] = fields["summary"]
        if "description" in fields:
            update_fields["description"] = fields["description"]
        if "priority" in fields:
            update_fields["priority"] = {"name": fields["priority"]}
        if "assignee" in fields:
            update_fields["assignee"] = {"name": fields["assignee"]}
        
        self.jira_client.update_issue_field(issue_key, update_fields)
        
        return [TextContent(
            type="text",
            text=f"Updated issue: {issue_key}"
        )]
  • The inputSchema defining the expected parameters for the jira_update_issue tool: an object with required 'issue_key' (string) and 'fields' (object with optional summary, description, priority, assignee).
    inputSchema={
        "type": "object",
        "properties": {
            "issue_key": {
                "type": "string",
                "description": "Issue key (e.g., PROJ-123)"
            },
            "fields": {
                "type": "object",
                "description": "Fields to update",
                "properties": {
                    "summary": {"type": "string"},
                    "description": {"type": "string"},
                    "priority": {"type": "string"},
                    "assignee": {"type": "string"}
                }
            }
        },
        "required": ["issue_key", "fields"]
    }
  • The Tool object registration for jira_update_issue in the list_tools() function, which defines the tool's name, description, and input schema.
    Tool(
        name="jira_update_issue",
        description="Update an existing Jira issue",
        inputSchema={
            "type": "object",
            "properties": {
                "issue_key": {
                    "type": "string",
                    "description": "Issue key (e.g., PROJ-123)"
                },
                "fields": {
                    "type": "object",
                    "description": "Fields to update",
                    "properties": {
                        "summary": {"type": "string"},
                        "description": {"type": "string"},
                        "priority": {"type": "string"},
                        "assignee": {"type": "string"}
                    }
                }
            },
            "required": ["issue_key", "fields"]
        }
    ),

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

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