
Hi, I need to change the status of CI by script. Does anyone know how I do? Thank´s \\\\\\ ////// Ivan Cordeiro de Souza \\\\\\ ////// Técnico de Suporte ////// \\\\\\ C.O.I. - Centro de Operações de Informática ////// \\\\\\ Fone: (41) 331-4504 Cel. 9255-0795

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Ivan,
I need to change the status of CI by script. Does anyone know how I do?
The correct way would be to use Kernel/System/ITSMConfigItem/Version.pm sub VersionAdd: $ConfigItemObject->VersionAdd( ConfigItemID => 123, Name => 'The Name', DefinitionID => 1212, StateID => 8, XMLData => $ArrayHaschRef, UserID => 1, ); ...it requires the XML-Data as parameter, so you have to retrieve this before. viele Gruesse, Torsten Thau - -- Torsten Thau, Dipl. Inform. c.a.p.e. IT GmbH - Annaberger Str. 240 - D-09125 Chemnitz phone: +49 371 5347 623 cell: +49 176 66 680 680 personal pgp-key: 0x93E0A174 company pgp-key: 0x292F987D fax: +49 371 5347 625 http://www.cape-it.de AG Chemnitz - HRB 23192 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIMtYAvXo8m5PgoXQRAvovAJwITtX81Xp6hpj9KUkazvghbS6t8ACeJhZY 9NeIp711a8ibWvYVRSn9A7w= =KmSn -----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Ivan,
I need to change the status of CI by script. Does anyone know how I do?
The correct way would be to use Kernel/System/ITSMConfigItem/Version.pm sub VersionAdd: $ConfigItemObject->VersionAdd( ConfigItemID => 123, Name => 'The Name', DefinitionID => 1212, StateID => 8, XMLData => $ArrayHaschRef, UserID => 1, ); ...it requires the XML-Data as parameter, so you have to retrieve this before. regards, Torsten Thau - -- Torsten Thau, Dipl. Inform. c.a.p.e. IT GmbH - Annaberger Str. 240 - D-09125 Chemnitz phone: +49 371 5347 623 cell: +49 176 66 680 680 personal pgp-key: 0x93E0A174 company pgp-key: 0x292F987D fax: +49 371 5347 625 http://www.cape-it.de AG Chemnitz - HRB 23192 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFINEvQvXo8m5PgoXQRAh6vAJ0ZMWgKLH/UO1hfgeQbePa2oFdTFgCfcQOl vcwa7aL8+pGgzdAj8/NMTs0= =pajb -----END PGP SIGNATURE-----
participants (2)
-
ivan.souza@copel.com
-
Torsten Thau