[rt-users] Asset Tracker API

Todd Chapman todd at chaka.net
Wed Aug 12 16:46:24 EDT 2009


My bad. If you want to link $at to $other_at:

$at->AddLink(Type=>'RefersTo',Target=> $other_at->URI);

Try it and see.

On Wed, Aug 12, 2009 at 4:38 PM, Michael
Ellis<Michael_Ellis at umanitoba.ca> wrote:
> Just to clarify, in...
>
>         $at->AddLink(Type=>'RefersTo',Target=> $at->URI);
>
> ... "Target" is the URI of the RefersTo link, while the URI at the end of the line becomes the corresponding ReferredToBy?
>
> -Mike
>
> -----Original Message-----
> From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Todd Chapman
> Sent: August-12-09 12:04 PM
> To: Michael Ellis
> Cc: rt Users; jsmoriss at mvlan.net
> Subject: Re: [rt-users] Asset Tracker API
>
> It should be similar to adding links to tickets.
>
> Ticket example: $TicketObj->AddLink(Type=>'RefersTo',Target=>$ticket->id);
>
> So asset would be: $at->AddLink(Type=>'RefersTo',Target=> $at->URI);
>
> The default link types are:
>
>    RefersTo
>    ReferredToBy
>    RunsOn
>    IsRunning
>    DependsOn
>    DependedOnBy
>    ComponentOf
>    HasComponent
>    Components
>
> Unlike RT, AT's link types are configurable. See AT_Config.pm.
>
> On Wed, Aug 12, 2009 at 12:06 PM, Michael
> Ellis<Michael_Ellis at umanitoba.ca> wrote:
>> (I’m sorry, I’m not sure if this is the right forum for this, If it isn’t
>> I’d love to know what is.)
>>
>>
>>
>> I’ve set up AT 1.2.4b1 with RT 3.8.4 and used a script written by
>> Jean-Sebastien Morisset to import my assets from our old DB. I now want to
>> recreated the links between assets.
>>
>>
>>
>> I’m wondering if anyone could point me in the right direction for finding
>> what the set links equivalent to the set fields code below:
>>
>>
>>
>> my ($id, $t, $msg) = $at->Create (
>>
>>                                 Name => $csv[$csv_map{"Name"}],
>>
>>                                 Status => $csv[$csv_map{"Status"}],
>>
>>                                 Type => $csv[$csv_map{"Type"}],
>>
>>
>>
>> What file in AT contains the handlers for these so that I can just inspect
>> it to see what else it can do?
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Mike
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>
>



More information about the rt-users mailing list