Hello all,
We are using JIRA-rest-java-client-api & core 2.0.0-m31.
Earlier, the custom fields were getting parsed correctly, but suddenly something changed in response data-type, and we started parsing the data improperly. Some parsing logic from JSON data is there in our code.
For e.g.
Before:
Actual JSON object received from Rest client:
{"self":"link_to_self","value":"Target","id":"1111"}Value obtained by correct parsing based on custom field schema: Target
After:
something changed and our parsing logic failed, and the value obtained as a result of parsing:
{"self":"link_to_self","value":"Target","id":"1111"}
We suspect either of the following change happenned on JIRA server side:
- Schema/type definition for the custom field that we receive from JIRA server itself has changed.
- Earlier, this field was received as a JSON Object, which is now being sent an element in a JSON Array.
I tried searching relevant release note in https://developer.atlassian.com/jiradev/latest-updates/preparing-for-jira-7-0/jira-7-0-api-changes but didn't succeed.
Can anyone guide what changed in this case, and how to catch such issue pro-actively. Any link to the relevant documentation would be helpful.
Edit on 2015-11-30 12:20 PM IST:
Schema for the customfield earlier:
"schema": {
"type": "array",
"items": "string",
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:multiselect",
"customId": 1234
}
Schema receiving now:
"schema": {
"type": "array",
"items": "option",
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:multiselect",
"customId": 1234
}
What caused the change in the value of field "items" from "string" to "option"?