This article discusses the complexities of creating a ticket (request/incident/problem) through a pre-defined template
All releases of SDM up to 17.4
At the basic level, it is impossible to create a ticket via a template through a single REST web service call. The current REST architecture does not support such a functionality and is a limitation on the functionality.
The following is a workaround one may try to follow to create a ticket through a template via REST, as there are several REST calls involved.
"@id": 12345,
"@REL_ATTR": "cr:12345", <== THIS IS THE ACTUAL TICKET ID which is the template
"@COMMON_NAME": 55,
"link": {
"@href": "http://SDM-SERVER:8050/caisd-rest/cr/12345",
"@rel": "self"
}
"@id": "U'XXXX'",
"@REL_ATTR": "U'XXXX'",
"@COMMON_NAME": "TestCI",
"link": [
{
"@href": "http://SDM-SERVER:8050/caisd-rest/nr/U'XXXX'",
"@rel": "self"
},
{
"@href": "http://SDM-SERVER:8050/caisd-rest/har_serx/U'XXXX'",
"@rel": "extension"
}
]
},
"assignee": {
"@id": "U'YYYY'",
"@REL_ATTR": "U'YYYY'",
"@COMMON_NAME": "ServiceDesk",
"link": {
"@href": "http://SDM-SERVER:8050/caisd-rest/agt/U'YYYY'",
"@rel": "self"
}
},.........................
"in": {
"customer": {
"@COMMON_NAME": "ServiceDesk"
},
"base_template": {
"@REL_ATTR": "cr:12345"
},
"affected_resource": {
"@COMMON_NAME": "TestCI"
},
"assignee": {
"@COMMON_NAME": "ServiceDesk"
},--------
Sample-376694.json attached to this KB Article illustrates the above functionality.
Broadcom Support is not permitted to assist in developing any custom code. The attached code and the above document is provided as-is for reference and is not intended for use in a production instance. Please try the above in a testing instance.