-
Bug
-
Resolution: Fixed
-
Low
-
None
-
1
-
Severity 3 - Minor
-
2
-
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.}}