Standard change created from Problem are not linked to parent taskDescriptionStandard change created from Problem are not linked to parent task.Steps to Reproduce 1.Open Standard Change Properties and untick the "Two step" checkbox------------------Standard Change Properties https://<instance>.service-now.com/nav_to.do?uri=std_change_properties.do?sys_id=527b5dafff700200b18affffffffff89Two step : false------------------2.Create Standard Change from Problem Expected: Change request field on problem populated with the Standard Change request. Actual: Change request field on problem is empty WorkaroundModify script include: com.snc.change_request.standard_change.link_task.valid_fields adding following value: parent,rfc Modify script include: StandardChangeLinker adding following code: /** * Link the created standard change to the target record e.g. incident, problem etc. * * @param table * @param sysId * @param field * @param chgSysId * @param chgDisplayValue */ _linkChgToTask: function(table, sysId, field, chgSysId, chgDisplayValue) { if (this._gs.nil(table) || this._gs.nil(field) || !this._isEligibleSysID(sysId) || !this._isEligibleSysID(chgSysId)) return; chgDisplayValue = chgDisplayValue || ""; if (this._log.atLevel(GSLog.DEBUG)) this._log.debug("[_linkChgToTask] table: " + table + " sysId: " + sysId + " field: " + field + " chgSysId: " + chgSysId + " chgDisplayValue: " + chgDisplayValue); var gr = new GlideRecord(table); if (!gr.get(sysId)) return; var validFields = gs.getProperty(this.VALID_FIELDS, "").split(","); if (this._log.atLevel(GSLog.DEBUG)) this._log.debug("[_linkChgToTask] field: " + field + " validFields: " + validFields.join(",")); if (validFields.indexOf(field) === -1 || !gr.isValidField(field)) return; var fieldElement = gr.getElement(field); if (fieldElement === null || fieldElement === undefined) return; var fieldType = fieldElement.getED().getInternalType() + ""; if (this._log.atLevel(GSLog.DEBUG)) this._log.debug("[_linkChgToTask] fieldType: " + fieldType); if (fieldType !== "reference") return; var referenceTable = fieldElement.getReferenceTable() + ""; if (this._log.atLevel(GSLog.DEBUG)) this._log.debug("[_linkChgToTask] referenceTable: " + referenceTable); var tableHierarchy = global.j2js(new global.TableUtils(referenceTable).getHierarchy()); var extendsTask = Array.isArray(tableHierarchy) && tableHierarchy.includes("task"); if (this._log.atLevel(GSLog.DEBUG)) this._log.debug("[_linkChgToTask] referenceTable: " + referenceTable + " extendsTask: " + extendsTask); // Only reference tables that extend task, can be written to, and are empty should be modified var forbidUpdate = !extendsTask || !gr.canWrite() || !gr[field].nil(); if (this._log.atLevel(GSLog.DEBUG)) this._log.debug("[_linkChgToTask] forbidUpdate: " + forbidUpdate); if (forbidUpdate) return; var chgGr = new GlideRecord("change_request"); if (!chgGr.get(chgSysId) || !chgGr.canRead()) return; gr.setValue(field, chgSysId); var taskUrl = "<a href='" + gr.getLink(true) + "'>" + gr.getDisplayValue() + "</a>"; if (gr.update()) this._gs.addInfoMessage(this._gs.getMessage("Standard Change {0} created from {1}", [chgDisplayValue, taskUrl])); else this._gs.addInfoMessage(this._gs.getMessage("Standard Change could not be created from {0}", [taskUrl])); },Related Problem: PRB2035924