Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-5574

"Error parsing date string" when date field is empty during Jira transition from Stash

    XMLWordPrintable

Details

    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"}}

      Attachments

        Activity

          People

            nma@atlassian.com Norman Ma (Inactive)
            dlee@atlassian.com Deric Lee (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: