Hi,
i created a new Button in the TicketZoom, which should move a Ticket to a specific Queue and lock it.
The Button is available and the move part is working, only the lock part i dont get to work.
I configured the Link likes this:
Action=AgentTicketMove;TicketID=[% Data.TicketID %];DestQueue=Buchaltung;Subaction=Lock
After i click the Button, the ticket is moved to the Buchaltung Queue but its not locked.
What am i doing wrong?
BR
Sebastian
TicketZoom Button to move and lock (move is working, locking is not)
Moderator: crythias
-
- Znuny newbie
- Posts: 16
- Joined: 30 Jul 2024, 14:51
- Znuny Version: 6.5.10
- Real Name: Sebastian
Re: TicketZoom Button to move and lock (move is working, locking is not)
ok, i just found, that the "Subaction" part was hacked into the old OTRS installation. Therefore it wont work.
What i now tried is this, which works fine.
Action=AgentTicketMove;TicketID=[% Data.TicketID %];DestQueue=Buchaltung;NewUserID=2
It moves the Ticket to the Queue and locks it to my Agent (ID 2).
The new question ist, can i use some variable instead of the fixed UserID? I want the id of the Agent that clicks the Button to be used.
I tried something like
Action=AgentTicketMove;TicketID=[% Data.TicketID %];DestQueue=Buchaltung;NewUserID=[% Data.UserID %]
or
Action=AgentTicketMove;TicketID=[% Data.TicketID %];DestQueue=Buchaltung;NewUserID=[% UserID %]
etc. but some far i had no luck.
BR
Sebastian
What i now tried is this, which works fine.
Action=AgentTicketMove;TicketID=[% Data.TicketID %];DestQueue=Buchaltung;NewUserID=2
It moves the Ticket to the Queue and locks it to my Agent (ID 2).
The new question ist, can i use some variable instead of the fixed UserID? I want the id of the Agent that clicks the Button to be used.
I tried something like
Action=AgentTicketMove;TicketID=[% Data.TicketID %];DestQueue=Buchaltung;NewUserID=[% Data.UserID %]
or
Action=AgentTicketMove;TicketID=[% Data.TicketID %];DestQueue=Buchaltung;NewUserID=[% UserID %]
etc. but some far i had no luck.
BR
Sebastian
-
- 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: TicketZoom Button to move and lock (move is working, locking is not)
try
Code: Select all
UserID=[% Env("UserID") | html %]
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
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
-
- Znuny newbie
- Posts: 16
- Joined: 30 Jul 2024, 14:51
- Znuny Version: 6.5.10
- Real Name: Sebastian
Re: TicketZoom Button to move and lock (move is working, locking is not)
Awesome, that works.
It has to be NewUserID=[% Env("UserID") | html %], but the "[% Env("UserID") | html %]" Part was exactly what i needed!
Thank you very much!
It has to be NewUserID=[% Env("UserID") | html %], but the "[% Env("UserID") | html %]" Part was exactly what i needed!
Thank you very much!