Get Number of links from a CI

Moderator: crythias

Locked
sebasia
Znuny newbie
Posts: 13
Joined: 23 Mar 2015, 15:28
Znuny Version: 4.0.7

Get Number of links from a CI

Post by sebasia »

Hi,

i need to read how many links a given CI from the CMDB has.

but i am not sure the Kernel::system::Linkobject works for CI's

can someone explain how to get number of links for a CommonObject like:

Code: Select all

CommonObjectLinks = $CommonObject->LinkList()

also, if it can be restricted to a certain type of links,(from type 2 CI's, or only one way links) that would be nice.

thank you.
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Get Number of links from a CI

Post by RStraub »

Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Locked