How to use variables in GenericAgent?

Moderator: crythias

Post Reply
hkais
Znuny expert
Posts: 287
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

How to use variables in GenericAgent?

Post by hkais »

How can I use variables in the generic agents Note section?

I tried in the "Add Note > Text" textarea to use

Code: Select all

<OTRS_OWNER_UserLogin> 
and

Code: Select all

[<OTRS_OWNER_UserLogin>]
but both are not getting replaced with the real value behind it.

How can I use variables in Generic Agent?
Which variables are possible to use?
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO users
zzz
Znuny superhero
Posts: 889
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: How to use variables in GenericAgent?

Post by zzz »

<OTRS_OWNER_UserLogin> works for me in OTRS 6. Which version are you using?

Edit: Based on your profile info you're still on v5, which does not support variables in the GA.

— Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
hkais
Znuny expert
Posts: 287
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: How to use variables in GenericAgent?

Post by hkais »

Hi there,

getting back after being on OTRS/Znuny 6

Sadly the variable <OTRS_OWNER_UserLogin> is not getting replaced. Do I need to configure something?
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO users
Johannes
Moderator
Posts: 391
Joined: 30 Jan 2008, 02:26
Znuny Version: All of them ^^
Real Name: Hannes
Company: Znuny|OTTERHUB

Re: How to use variables in GenericAgent?

Post by Johannes »

Hi,

OTRS / Znuny Tags are not available in the GenericAgent

Regards
hkais
Znuny expert
Posts: 287
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: How to use variables in GenericAgent?

Post by hkais »

was here any progress done?

Tried to test the variable replacement in Generic Agent without success. Variable is still not getting replaced in Znuny 6.4

Am I doing something wrong here?
zzz wrote: 25 Sep 2020, 13:36 <OTRS_OWNER_UserLogin> works for me in OTRS 6. Which version are you using?
@zzz can you share me a screenshot of how you added it to GA?
Are you using Znuny 6.x too?
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO users
Johannes
Moderator
Posts: 391
Joined: 30 Jan 2008, 02:26
Znuny Version: All of them ^^
Real Name: Hannes
Company: Znuny|OTTERHUB

Re: How to use variables in GenericAgent?

Post by Johannes »

hkais wrote: 09 Aug 2022, 12:29 was here any progress done?

Tried to test the variable replacement in Generic Agent without success. Variable is still not getting replaced in Znuny 6.4

No. And Correct. It is the same at it was before, as you can see in the change log.
Johannes
Moderator
Posts: 391
Joined: 30 Jan 2008, 02:26
Znuny Version: All of them ^^
Real Name: Hannes
Company: Znuny|OTTERHUB

Re: How to use variables in GenericAgent?

Post by Johannes »

I might read this wrong. Sorry for the confusion.

Tag replacement works fine for the article / note.

But not in the update section.
Image 2022-08-09 19-54-08.png
2022080910000016 - Zoom - Ticket - Znuny 2022-08-09 19-55-05.png
Even the user login works fine
Image 2022-08-09 19-57-46.png
You do not have the required permissions to view the files attached to this post.
hkais
Znuny expert
Posts: 287
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: How to use variables in GenericAgent?

Post by hkais »

okay seems I am using wrong variable names. Let me retry on notes.

But also having the query to be able to use variables for the section Update/Add Ticket attributes
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO users
nedmaj
Znuny expert
Posts: 167
Joined: 26 Nov 2014, 20:34
Znuny Version: 6.3.4
Real Name: Samuel Casimiro
Company: Câmara dos Deputados
Contact:

Re: How to use variables in GenericAgent?

Post by nedmaj »

Hi,

Maybe this could help you it it's a process ticket case. I've made a generic agent custom module that runs any transition action. Here it goes.

Just unzip and save it in Custom/Kernel/System/GenericAgent/

The needed parameters are described in the code.

You could inform several TransitionActionsEntityIDs comma separated.

The module was tested using Znuny 6.3.4. Soon I will publish it on github.
You do not have the required permissions to view the files attached to this post.
Samuel

Znuny 6.3.4 | OTRS 5.0.17
OS: Debian 11 | CentOS 6.5
Database: Postgres | Oracle 12.1
Number of agents: 450 | Number of customers: 20000 | Number of CIs: 30000
Post Reply