REST API GET Method's JSON Format for Issue Tracking Systems
The GET method exposed by an external system's REST API needs to follow a certain JSON format, which is readable by SAM. The JSON must have a 'key identifier' property representing an issue's unique identifier (such as Bugzilla's bug number) and a 'key status' property which represents the lifecycle state of the issue (such as Bugzilla's status field).
GET JSON needs to be an array with single or multiple elements.
JSON sample:
[
{
"issueId": "17788411",
"status": "Approved, waiting for codeline to open",
"priority": "1",
"customer": "INTERNAL",
"severity": "2",
"publish": "N",
"statusId": "39"
},
{
" issueId ": "22809179",
"status": "Closed, Not a Bug",
"priority": "5",
"customer": "INTERNAL",
"severity": "2",
"publish": "N",
"statusId": "92"
},
{
" issueId ": "22809190",
"status": "Closed, Not a Bug",
"priority": "5",
"customer": "INTERNAL",
"severity": "2",
"publish": "N",
"statusId": "92"
}
]
Note: "issueId" is the 'key identifier' and "statusId" is the 'key
status' property in the previous sample.