Default Text in a Note

Moderator: crythias

Locked
tnieman
Znuny advanced
Posts: 103
Joined: 14 Nov 2012, 21:59
Znuny Version: 3.1.6
Real Name: Tom Nieman
Company: WorkForce Software

Default Text in a Note

Post by tnieman »

I would like to include the value of a dynamic field as default text in a note on a ticket. I see how to enter default text, but I don't know how to pull in the field data.

I found the $QData{:""} function in the Developer manual, but it won't pull in DevTestTrackNumber dynamic field that we created.

I also saw $QEnv{""} in the Dev manual, I tried $QEnv{"UserFirstName"} as a test, and it worked.

How do I include ticket level data?
Last edited by tnieman on 26 Dec 2012, 20:37, edited 1 time in total.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Default Text in a Note

Post by jojo »

Please Show the variable you tried in QData
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
tnieman
Znuny advanced
Posts: 103
Joined: 14 Nov 2012, 21:59
Znuny Version: 3.1.6
Real Name: Tom Nieman
Company: WorkForce Software

Re: Default Text in a Note

Post by tnieman »

It was DevTestTrackNumber, which is a dynamic field.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Default Text in a Note

Post by jojo »

Try <OTRS_TICKET_DynamicField_DevTestTrackNumber>
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
tnieman
Znuny advanced
Posts: 103
Joined: 14 Nov 2012, 21:59
Znuny Version: 3.1.6
Real Name: Tom Nieman
Company: WorkForce Software

Re: Default Text in a Note

Post by tnieman »

I put in $QData{"<OTRS_TICKET_DynamicField_DevTestTrackNumber>"}

It didn't work.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Default Text in a Note

Post by jojo »

just try <OTRS_TICKET_DynamicField_DevTestTrackNumber> (in sysconfig)
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
tnieman
Znuny advanced
Posts: 103
Joined: 14 Nov 2012, 21:59
Znuny Version: 3.1.6
Real Name: Tom Nieman
Company: WorkForce Software

Re: Default Text in a Note

Post by tnieman »

Tried that - see the images I attached.
You do not have the required permissions to view the files attached to this post.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Default Text in a Note

Post by jojo »

I checked the code. Using these fields is only possible in for the canned replies, notification, notification event and auto replies
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
tnieman
Znuny advanced
Posts: 103
Joined: 14 Nov 2012, 21:59
Znuny Version: 3.1.6
Real Name: Tom Nieman
Company: WorkForce Software

Re: Default Text in a Note

Post by tnieman »

OKay, thanks for checking for me.

Tom
Locked