Creating Standalone Change Issues
You can create a standalone change issue (problem report or variance) by providing the required attributes in the body of the request. To create a change issue you must have create permissions.
Example: Create a standalone Problem Report
This example shows you how to create a standalone problem report. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/ChangeMgmt/ProblemReports HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Name": "Org",
"Description": "This is a Problem Report",
"Category": {
"Value": "OTHER"
},
"State": {
"Value": "IMPLEMENTATION"
},
"NeedDate": "2021-01-27T00:00:00+05:30",
"IssuePriority": {
"Value": "HIGH"
},
"Requester": "user1",
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:107470')",
"Organization@odata.bind": "Organizations('OR:wt.org.WTOrganization:268')",
"@odata.type": "#org.rnd.PRSub",
"Identity": "PR",
"CityCM": {
"Value": "Nagar"
},
"DescriptionSummary": "PR Description Summary",
"StateCM": {
"Value": "MH"
},
"ResolutionDate": "2021-01-22T09:45:28.664Z",
"IsRemote": true,
"Uri": "Uri",
"Latest": false,
"Revision": "AB.1",
"FolderLocation": "/GOLF_CART",
"FolderName": "Design",
"ObjectType": "PRSub",
"PRAlias": "alias",
"PRBool": true,
"PRDateNTime": "2021-01-28T09:45:28.664Z",
"PRGlobal": "Global attr",
"PRInt": 11,
"PRString": "Local String attr"
}
Example: Create a Standalone Variance
This example shows you how to create a standalone variance. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/ChangeMgmt/Variances HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Name": "Variance Sub",
"NeedDate": "2021-01-27T00:00:00+05:30",
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:107470')",
"Organization@odata.bind": "Organizations('OR:wt.org.WTOrganization:268')",
"@odata.type": "#org.rnd.VarSub",
"ResolutionDate": "2021-01-22T09:45:28.664Z",
"Latest": false,
"Revision": "AB.1",
"Category": null,
"CreatedOn": "2021-01-22T16:46:07+05:30",
"Description": null,
"DescriptionSummary": null,
"Identity": "VarSub - 00061, Demo Organization",
"IsRemote": false,
"LastModified": "2021-01-22T16:46:07+05:30",
"LifeCycleTemplateName": "Variance Life Cycle",
"State": {
"Value": "UNDERREVIEW",
"Display": "Under Review"
},
"ApprovedQuantity": 12,
"CabinetName": "Default",
"CorrectiveAction": "CorrectiveAction",
"EXPORTCONTROL": "EXPORTCONTROL",
"EffectOnCost": "EffectOnCost",
"EffectOnSchedule": "EffectOnSchedule",
"EffectOnSupport": "EffectOnSupport",
"FolderLocation": "/GOLF_CART",
"ObjectType": "org.rnd.VarSub",
"Reason": "Reason",
"ReasonSummary": "Reason Summary",
"Recurring": true,
"VarianceCategory": {
"Value": "MINOR",
"Display": "Minor"
},
"VRBool": false,
"VRDateNTime": "2021-01-27T16:46:07+05:30",
"VRGlobal": "VR Global",
"VRString": "Var String",
"VarInt": 11,
"VarianceOwners@odata.bind": "Users('OR:wt.org.WTUser:12')"
}
Was this helpful?