Previous Topic: Attach an Incident to a ProblemNext Topic: Configuration Items


Attach a Problem to a Change Order

Incidents and problems can be linked to change orders with the attachChangeToRequest method. The following example code uses this method to simultaneously create a change order and attach it to a problem. In the example, “cr:12347” is the object handle of the problem—it passes a blank handle for the fourth parameter, which causes the method to create a change:

UPSPSD.attachChangeToRequest(SID, creatorHandle, “cr:12347”, “”, new String[0], “activity description”)