CI field auto updating other fields - why and how do you turn off?

djtaylor
Tera Contributor

First in the RITM the work notes in the RITM was updated with the following "Configuration item assigned from stock". When we looked into the CI and the associated Asset we found that "Stock" was not it's previous state. What is the purpose of this work note being auto added to the RITM work notes?

Second when we looked at both the CI and the associated RITM we found that the user that was listed in the Assign to field of the CI and the Last Login field of the Asset was changed. Why is the the action of adding a CI to a RITM changing those fields in the CI and Asset?

2 REPLIES 2

Kieran Anson
Kilo Patron

Hi,

The business rule running is part of asset management 'Assign from Stock'. It's intended purpose is to assign the config item to the requested_for

var cmdb_ci = new GlideRecord("cmdb_ci");
if(cmdb_ci.get(current.configuration_item)) {
  cmdb_ci.install_status = 4; // pending install
  cmdb_ci.assigned_to = current.request.requested_for;
  cmdb_ci.assigned = gs.nowDateTime();

  current.work_notes = "Configuration item assigned from stock";

  cmdb_ci.update();
}

Hi, Checking in on whether my reply resolved your issue? If so please Mark Correct and /or 👍 Helpful if you find my response worthy based on the impact.
By doing so you help other community members find resolved questions which may relate to an issue they're having.