From 0284c5bcce17574751988cc7ae02441935e10a8d Mon Sep 17 00:00:00 2001 From: REN Xiaolei Date: Wed, 5 Aug 2015 12:33:55 +0800 Subject: [PATCH] Fix JSON formatting when POST date type. old fashion would post duedate field as "duedate": {"id": "2015-07-31"} but Jira refused it: "Operation value must be a string" this commit fix the formatting. Tested on Jira 6.4.4 --- sentry_jira/forms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sentry_jira/forms.py b/sentry_jira/forms.py index 475503b..1994b83 100644 --- a/sentry_jira/forms.py +++ b/sentry_jira/forms.py @@ -252,6 +252,8 @@ def clean(self): schema = f["schema"] if schema.get("type") == "string" and not schema.get("custom") == CUSTOM_FIELD_TYPES["select"]: continue # noop + if schema.get("type") == "date": + continue if schema["type"] == "user" or schema.get('item') == "user": v = {"name": v} elif schema.get("custom") == CUSTOM_FIELD_TYPES.get("multiuserpicker"):