Hello,
Try creating a view for child WO and associate this this view in OS. Make sure the where clause associated in view is having same whereclause that is used in our UI to display child WOs.
The Payload looks like below.
{
"spi:workorder": {
"wonum": null,
"description": "Test for WO",
"status": "APPR",
"siteid": "BEDFORD",
"location": "MAINPLANT",
"assetnum": "SERVER-001",
"childwos": [ // This "childwos" property name matches your relationship name
{
"wonum": null,
"description": "Child WO: Install RAM Upgrade",
"status": "APPR",
"siteid": "BEDFORD",
"location": "MAINPLANT",
"assetnum": "SERVER-001"
// Maximo will automatically set the 'parent' attribute for this child based on the relationship
},
{
"wonum": null,
"description": "Child WO: Configure Network Settings",
"status": "APPR",
"siteid": "BEDFORD",
"location": "MAINPLANT",
"assetnum": "SERVER-001"
// Maximo will automatically set the 'parent' attribute for this child
}
]
}
}
Thank you !
------------------------------
Pavan Uppalanchu
IBM
------------------------------