Default Text in a Note
Moderator: crythias
-
- 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
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?
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.
Re: Default Text in a Note
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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- 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
It was DevTestTrackNumber, which is a dynamic field.
Re: Default Text in a Note
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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- 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
I put in $QData{"<OTRS_TICKET_DynamicField_DevTestTrackNumber>"}
It didn't work.
It didn't work.
Re: Default Text in a Note
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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- 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
Tried that - see the images I attached.
You do not have the required permissions to view the files attached to this post.
Re: Default Text in a Note
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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- 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
OKay, thanks for checking for me.
Tom
Tom