I am trying to transition issues through the workflow using either the JiraRestClient or rest directly.
I have successfully used a combination of both to facilitate creating issues and sub-tasks and searching for issues and sub-tasks.
When attempting to transition an issue I am getting back
Request failed-Http Status: POST https://<our-host>.com/rest/api/latest/issue/QA-10109/transitions returned a response status of 400 Bad Request
Using curl
Response:
{"errorMessages":["Can not deserialize instance of java.util.ArrayList out of START_OBJECT token\n at [Source: org.apache.catalina.connector.CoyoteInputStream@716ca6c8; line: 1, column: 15]"]}
data.txt contents
{"update": {
"transition": {"name": "RerunPass"},
"comment": [{"add": {"body": "BuildID: 20121022-14000-2222222\nSystem: \nVersion: 2012 Q3\nTell me more"}}],
"fields": {"resolution": {"name": "RerunPass"}}
}}
any assistance in debugging this or examples of using either the direct rest access or JiraRestClient would be appreciated.