Pre-filling the article "Text" in the creation form (based on a template)

Moderator: crythias

Post Reply
vincentb
Znuny newbie
Posts: 12
Joined: 30 Jan 2021, 07:51
Znuny Version: 6 community
Real Name: Vincent B.

Pre-filling the article "Text" in the creation form (based on a template)

Post by vincentb »

Hello,

I know that I can craft URLs to bring up the AgentTicketPhone ticket creation form with some values already selected.

For example, I use:
https://myserver/otrs/index.pl?Action=A ... rence=1234

In this example "StandardTemplateID=9" makes appear the wanted template name in the "Text Template" field, as expected.
However the correponding text which is defined for the template is NOT displayed in the "Text" area as expected. Any advice to have the article "Text" prepopulated in accordance with the selected template?

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

Re: Pre-filling the article "Text" in the creation form (based on a template)

Post by skullz »

Unfortunately, from https://github.com/znuny/Znuny/blob/820 ... e.pm#L1814 and https://github.com/znuny/Znuny/blob/820 ... e.pm#L1677
to prefill the text via template id method is called from Subaction=AJAXUpdate. Not StoreNew..

So definitely need code changes perhaps..
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Pre-filling the article "Text" in the creation form (based on a template)

Post by reneeb »

You could use the (commercial) addon https://feature-addons.de/znuny/Ticket/TicketTemplates
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Post Reply