-
Notifications
You must be signed in to change notification settings - Fork 642
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Prerequisites
- I have searched the existing issues to make sure this bug has not already been reported.
- I have checked the README for relevant information.
Bug Description
When I call the jira_create_issue
with fields that are datetime
, it fails on parsing the datetime
string passed.
Original string: Tried either this 2025-09-25T13:00:00.000Z
or this 2025-09-25T13:00:00+0000
Error: Error parsing time: 2025-09-25T13:00:00+00:00
Note the added colon to the original string
From debugging the source code it seems the origin of the issue is in dt.isformat() in the jira/issues.py here which creates the ISO datetime format with a colon, which JIRA rejects.
Steps to Reproduce
- Configure Cline to use the MCP server and activate it
- Ask to create a jira issue with fields of datetime. It is basically different for each JIRA project, but for my case, all the following fields are mandatory:
create issue with the following arguments: { "project_key": "CHANGE", "issue_type": "Change Request", "summary": "Summary test", "description": "h2. Change Description", "additional_fields": { "customfield_10301": "2025-09-25T13:00:00.000Z", "customfield_13900": "2025-09-25T14:00:00.000Z", "customfield_10401": "h2. Val", "customfield_10408": "h2. Ch", "customfield_10308": "h2. Dep", "customfield_10409": "h2. Ro", "customfield_17806": 30, "customfield_15700": [{ "id": "39401" }], "customfield_21700": [{ "id": "58819" }], "customfield_10403": { "id": "48097" }, "customfield_10417": { "id": "11053" }, "customfield_10406": { "id": "10962" } } }
Expected Behavior
The issue is created
Actual Behavior
DEBUG - atlassian.rest_client - HTTP: POST rest/api/2/issue -> 400
DEBUG - atlassian.rest_client - HTTP: Response text -> {"errorMessages":[],"errors":{"customfield_13900":"Error parsing time: 2025-09-25T14:00:00+00:00","customfield_10301":"Error parsing time: 2025-09-25T13:00:00+00:00"}}
ERROR - mcp-jira - Error creating Change Request: Error parsing time: 2025-09-25T14:00:00+00:00
Error parsing time: 2025-09-25T13:00:00+00:00
ERROR - FastMCP.fastmcp.tools.tool_manager - Error calling tool 'create_issue': Error parsing time: 2025-09-25T14:00:00+00:00
Error parsing time: 2025-09-25T13:00:00+00:00
Traceback (most recent call last):
File "/app/.venv/lib/python3.10/site-packages/fastmcp/tools/tool_manager.py", line 120, in call_tool
return await tool.run(arguments)
File "/app/.venv/lib/python3.10/site-packages/fastmcp/tools/tool.py", line 144, in run
result = await result
File "/app/.venv/lib/python3.10/site-packages/mcp_atlassian/utils/decorators.py", line 42, in wrapper
return await func(ctx, *args, **kwargs)
File "/app/.venv/lib/python3.10/site-packages/mcp_atlassian/servers/jira.py", line 698, in create_issue
issue = jira.create_issue(
File "/app/.venv/lib/python3.10/site-packages/mcp_atlassian/jira/issues.py", line 612, in create_issue
response = self.jira.create_issue(fields=fields)
File "/app/.venv/lib/python3.10/site-packages/atlassian/jira.py", line 1729, in create_issue
return self.post(url, params=params, data=data)
File "/app/.venv/lib/python3.10/site-packages/atlassian/rest_client.py", line 713, in post
response = self.request(
File "/app/.venv/lib/python3.10/site-packages/atlassian/rest_client.py", line 445, in request
self.raise_for_status(response)
File "/app/.venv/lib/python3.10/site-packages/atlassian/rest_client.py", line 994, in raise_for_status
raise HTTPError(error_msg, response=response)
requests.exceptions.HTTPError: Error parsing time: 2025-09-25T14:00:00+00:00
Error parsing time: 2025-09-25T13:00:00+00:00
mcp-atlassian Version
1.9.4
Installation Method
Docker
Operating System
macOS
Python Version
3.10.18
Atlassian Instance Type
Jira Server / Data Center
Client Application
Cline
Additional Context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working