FYI: attached is the script that creates the links between conputers and monitors in OTRS.
The script is (I hardly dare to say) documented inline. But it's not a big deal. Feel free to ask. cheers, Martin On Wednesday, March 16, 2011 11:26:53 AM Martin Aigner wrote: > Thanks Udo, > > you approach works as expected. Excellent API btw. > > Best, Martin > > On Tuesday, March 08, 2011 11:44:19 AM Udo Bretz wrote: > > Hello Martin, > > > > unfortunately the Import/Export script is currently not able to create > > links between objects. > > > > But you could write a script, which uses Kernel/System/LinkObject.pm, > > especially the LinkAdd() function to create the links. > > > > Best regards, > > Udo > > > > On 08.03.2011 10:58, Martin Aigner wrote: > > > Hello OTRS, > > > > > > first of all, OTRS is a great project. We are struggeling with an > > > ancient ticket/inventory systems for ages and now it seems we are > > > finally able to swithing to OTRS. Thanks for that. > > > > > > Right now I am trying to migrate our inventory to OTRS using the > > > import/export management. I retrieve inventory data from OCS inventory > > > http://www.ocsinventory-ng.org/ and write a csv file with a simple > > > python script. btw: I am willing to share the script if someone is > > > interested. It is not a big deal, though. > > > > > > This procedure works fine for computers, printers, monitors... as stand > > > alone items. > > > > > > What I would like to do is to import the link between this items. I can > > > provide the IDs of the related items but it seems that the import > > > manager cannot create a template to import such data. I use > > > $OTRS/bin/otrs.ImportExport.pl with a template I created using the > > > admin interface. > > > > > > Best, Martin > > > --------------------------------------------------------------------- > > > OTRS mailing list: otrs - Webpage: http://otrs.org/ > > > Archive: http://lists.otrs.org/pipermail/otrs > > > To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs > > > > --------------------------------------------------------------------- > > OTRS mailing list: otrs - Webpage: http://otrs.org/ > > Archive: http://lists.otrs.org/pipermail/otrs > > To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs > > --------------------------------------------------------------------- > OTRS mailing list: otrs - Webpage: http://otrs.org/ > Archive: http://lists.otrs.org/pipermail/otrs > To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
linkThem.pl.gz
Description: GNU Zip compressed data
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
