Importing System Fields
A static GET end point has to be used to import field metadata that the 'Issue Tracking System' supports. This end point will bring two properties namely, 'fieldName' and 'fieldId'. 'fieldName' represents the name of the field and 'fieldId' represents a unique identifier which is also used for order of the fields while being imported in SAM. All the available fields in GET and POST mentioned earlier need to be represented in the JSON output.
URL: http://<server ip>/services/bugzilla/fields/
JSON sample:
[
{
"fieldName": "issueId",
"fieldId": "0"
},
{
"fieldName": "status",
"fieldId": "1"
},
{
"fieldName": " priority ",
"fieldId": "2"
},
{
"fieldName": " customer ",
"fieldId": "3"
},
{
"fieldName": " severity",
"fieldId": "4"
},
{
"fieldName": " publish",
"fieldId": "5"
},
{
"fieldName": " statusId ",
"fieldId": "6"
}
]