Details
-
Bug
-
Resolution: Fixed
-
Low
-
3.2.7, 3.5.0
Description
Problem Statement
When transitioning a JIRA issue with a blank value in a date picker custom field, Stash POST a empty String value to Jira when transitioning an issue from Stash. The request will be rejected by JIRA with error message: Error parsing date string
Example
Example request payload by Stash, customfield_10000 being the date picker field custom field:
{"fields":{"assignee":{"name":"admin"},"customfield_10002":"","resolution":{"name":"Fixed"},"customfield_10000":""},"transition":{"id":"2"}}
Example response:
{"errors":[{"context":"customfield_10000","message":"Error parsing date string: ","exceptionName":null}]}
Suggestion
Stash should send a NULL value rather than a blank String to JIRA when date is not specified. Example:
{"fields":{"assignee":{"name":"admin"},"customfield_10002":"","resolution":{"name":"Fixed"},"customfield_10000":null},"transition":{"id":"2"}}