Cls import/ export with links

Moderator: crythias

Locked
imes
Znuny newbie
Posts: 39
Joined: 19 Sep 2019, 13:43
Znuny Version: 6.0.22
Real Name: Ismael

Cls import/ export with links

Post by imes »

If possible export and import Cls in CMDB with link to other Cls?
wurzel
Znuny guru
Posts: 3273
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Cls import/ export with links

Post by wurzel »

Hi,

yes but you need additional addons. Actually I do not know the name, I know there is one.

For the ((OTRS)) Community Edition there is no option AFAIK.

Cheers
Florian
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
imes
Znuny newbie
Posts: 39
Joined: 19 Sep 2019, 13:43
Znuny Version: 6.0.22
Real Name: Ismael

Re: Cls import/ export with links

Post by imes »

OK thanks
Does anyone know the addon?
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Cls import/ export with links

Post by skullz »

Check https://opar.perl-services.de/ for addon itsm config item reference.. There u can define a CI attributes that has a relation with another CI attributes..thus allowing import/export with linked CI..

Good luck
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
imes
Znuny newbie
Posts: 39
Joined: 19 Sep 2019, 13:43
Znuny Version: 6.0.22
Real Name: Ismael

Re: Cls import/ export with links

Post by imes »

The plugin is ITSM-CIAttributeCollection?

The state has been looking for manuals but the officer cannot find how to do what I request, can someone help me?

Thanks
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Cls import/ export with links

Post by skullz »

imes wrote: 16 Apr 2020, 16:00 The plugin is ITSM-CIAttributeCollection?

The state has been looking for manuals but the officer cannot find how to do what I request, can someone help me?

Thanks
Yes..thats the addon name..

Take a look at "CIClassReference"..you can download the guide PDF at Package Manager after install the addon.

EXAMPLE
- Link CI in Hardware to CI in Computer
- So here, in Computer class, i take SerialNumber as a reference for the CI in Hardware
- In Hardware definition, i add the the below config

Code: Select all

- Input:
    Type: CIClassReference
    ReferencedCIClassName: Computer
    ReferencedCIClassLinkType: Includes
    ReferencedCIClassLinkDirection: Normal
    ReferencedCIClassReferenceAttributeKey: SerialNumber
    SearchInputType: AutoComplete
  Key: Reference
  Name: Reference
  Searchable: 0
- Conclusion, if the (Computer Class || Serial Number ) is XYZ, then the (Hardware Class || Reference ) also should be XYZ. (In csv export files)
- This should link these two CI.

Good luck..
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
imes
Znuny newbie
Posts: 39
Joined: 19 Sep 2019, 13:43
Znuny Version: 6.0.22
Real Name: Ismael

Re: Cls import/ export with links

Post by imes »

ohhh thank you very much, it worked!
imes
Znuny newbie
Posts: 39
Joined: 19 Sep 2019, 13:43
Znuny Version: 6.0.22
Real Name: Ismael

Re: Cls import/ export with links

Post by imes »

Thank you,
Now I run into a problem when importing some links between CIs.

I have a class "Balance" where I create an item and I have added the field "Locations" where I indicate that it is GM-SEVILLA (5524000222). If I export this I get the following:

Image
Image

However, if I want to import with the "Locations" field different GM-OLOT (5524000232) does not recognize it and creates an automatic link with GM-FIGUERES (5524000166) that corresponds to the first CI data of the BD, from what I understand that by not recognizing the import it creates a default link with the first IC of the database.

CSV modify to import:
Image

Import with other link:
Image

Log system:
Image

ConfigItem Class:
Image

Any idea what format to give it to detect it?

I hope I explained myself correctly
Thank you.
imes
Znuny newbie
Posts: 39
Joined: 19 Sep 2019, 13:43
Znuny Version: 6.0.22
Real Name: Ismael

Re: Cls import/ export with links

Post by imes »

I have managed to find the error.

In the "ReferencedCIClassReferenceAttirbuteKey" attribute it was poorly defined, it had 'Name', I have changed it to 'NumeroSEDE' which is a unique code of the 'UBICACIONES' class that I have defined and it already works correctly.

ReferencedCIClassReferenceAttributeKey => 'NumeroSEDE',
Locked