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

Cannot transitions issues from Bitbucket for issues with checkbox fields

XMLWordPrintable

      Description

      Issues with a custom 'checkbox' field cannot be transitioned through the transition screen in Bitbucket.

      Steps to reproduce

      1. Set up a jira project that has required fields on transition
      2. Add a custom field of type 'checkbox' to a jira project.
      3. Mention the Jira ticket in Bitbucket and try to transition it

      Expected come

      Issue transitions without problems

      Actual outcome

      No errors show on the transition dialog but transition does not appear to succeed.
      The network tab shows that the transition request contained a field called 'undefined', and the response from Jira is a 500.

      Request:

                "postData": {
                  "mimeType": "application/json",
                  "text": "{\"fields\":{\"customfield_10007\":{\"name\":\"khughes\"},\"fixVersions\":[{\"id\":\"10000\"}],\"assignee\":{\"name\":\"khughes\"},\"undefined\":[],\"resolution\":{\"id\":\"10000\"}},\"transition\":{\"id\":\"41\"}}"
                }   

      Response:

                  "text": "{\"errors\":[{\"context\":\"undefined\",\"message\":\"Field 'undefined' cannot be set. It is not on the appropriate screen, or unknown.\",\"exceptionName\":null}]}"
                },  

      Bitbucket logs show the following error:

      2018-05-25 16:00:25,921 ERROR [http-nio-7990-exec-1] admin @ACFO9Wx960x360x0 15m1395 0:0:0:0:0:0:0:1 "POST /rest/jira-integration/latest/issues/TEST-1/transitions HTTP/1.1" c.a.i.i.jira.DefaultJiraService TEST-1 could not be transitioned: JiraErrors{errorMessages=[], errors={undefined=Field 'undefined' cannot be set. It is not on the appropriate screen, or unknown.}}
      

              khughes@atlassian.com Kristy
              khughes@atlassian.com Kristy
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: