set_defence_checked
Validate and mark JIRA issues as defence-checked using the MCP server, ensuring compliance by verifying portfolio details and task readiness.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| portfolio | Yes |
Implementation Reference
- src/hh_jira_mcp_server/server.py:38-46 (handler)The handler function for the 'set_defence_checked' tool. It updates the custom field (customfield_32210) on the Jira issue PORTFOLIO-{portfolio} with the defense text and returns a success message with the task URL.@mcp.tool() def set_defence_checked(portfolio: int) -> str: try: jira_api = get_jira() issue = jira_api.issue(f"PORTFOLIO-{portfolio}") issue.update(fields={'customfield_32210': [{'value': get_defense_text()}]}) return "Defence checked for " + get_task_url(issue.key) except Exception as e: return f"Error: {str(e)}"