create_task
Generate and manage JIRA tasks directly through the HH JIRA MCP Server. Define task titles and integrate with JIRA for streamlined issue tracking and task creation.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes |
Implementation Reference
- src/hh_jira_mcp_server/server.py:21-36 (handler)The core handler function for the 'create_task' MCP tool. It is registered via the @mcp.tool() decorator and implements the logic to create a new Jira task (issue) in the 'HH' project with the provided title, automatically assigning it to the current user and team using helper functions.@mcp.tool() def create_task(title: str) -> str: try: fields = { 'project': "HH", 'issuetype': {'id': '3'}, 'summary': title, 'assignee': {'name': get_user()}, 'customfield_10961': {'value': get_team()} } task = get_jira().create_issue(prefetch=True, fields=fields) return get_task_url(task.key) except Exception as e: return f"Error: {str(e)}"