Get Relation List/Downtime¶
Get details of associated records/downtime records.
Request Format¶
POST https://{apigw-address}/work-management-cmms/v1.0/s-taskmgmtds/cmms/common/issue-relation/search
Request Parameters (URI)¶
Name |
Location (Path/Query) |
Required/Optional |
Data Type |
Description |
---|---|---|---|---|
issueId |
Query |
Required |
String |
Ticket ID |
Request Parameters (Header)¶
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
authorization |
Required |
String |
Access token. The format of the parameter’s string is Bearer {your token}. Refer to Log In or Refresh Access Token to learn how to get the access token. |
Request Parameters (Body)¶
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
issueIds |
Required |
List of String |
The list of issueId to query |
issueType |
Required |
String |
Ticket type. Service Request: SR; Work Order: WO |
relationIssueTypes |
Required |
List of String |
Query type. Service request: SR; Work order: WO |
Response Parameters¶
Name |
Data Type |
Description |
---|---|---|
DT |
List of String |
Associated downtime record ID list |
WO |
List of String |
Associated work order ID list |
SR |
List of String |
Associated service request ID list |
Samples¶
Request Sample¶
url: https://{apigw-address}/work-management-cmms/v1.0/s-taskmgmtds/cmms/common/issue-relation/search
method: POST
Header:
authorization: Bearer your_token
requestBody:
{
"issueIds":["yourIssueId"],
"issueType":"WO",
"relationIssueTypes":["WO"]
}
Response Sample¶
{
"code": 0,
"data": {
"yourIssueId": {
"DT": [],
"WO": [
"relatedwoID1",
"relatedwoID2"
],
"SR": []
}
}
}