Link a new ticket to a FAQ item already at the opening

Moderator: crythias

Post Reply
Cassoli
Znuny newbie
Posts: 4
Joined: 22 May 2024, 16:22
Znuny Version: 6.5
Real Name: Rafael
Company: C4S

Link a new ticket to a FAQ item already at the opening

Post by Cassoli »

Masters of service management, I'm racking my brains trying to somehow link a new ticket to a FAQ item already at the opening. I tried the generic attendant and tried a Perl code, both without success. I also didn't find any relevant documentation that would guide me. Does anyone have a light?

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

Re: Link a new ticket to a FAQ item already at the opening

Post by skullz »

since you already in generic agent and perl code,
you are lookin at https://doc.znuny.org/legacy/api/otrs/6 ... ml#LinkAdd

This will be the combination of DynamicField (populate faq_id, faq_title), GenericAgent and Custom Module that should contains code as below

Code: Select all

$True = $LinkObject->LinkAdd(
        SourceObject => 'Ticket',
        SourceKey    => '<TicketID>',
        TargetObject => 'FAQ',
        TargetKey    => '<FAQID>',
        Type         => 'ParentChild',
        State        => 'Valid',
        UserID       => 1,
    );
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
Post Reply