[rt-users] SOLVED: How to access a CustomField from Ticket/Tabs
Brumm, Torsten / Kuehne + Nagel / Ham MI-ID
torsten.brumm at Kuehne-Nagel.com
Wed Sep 16 10:39:45 EDT 2009
OK, sometime the vacuum in my head is preventing me from thinking.
Thanks to Scott Lander for Support.
Solution:
my $path = 'Ticket/Display.html?Status=';
my $CFStat=$Ticket->FirstCustomFieldValue('Saved_Status');
$actions->{'ZZZ-Clone8'} = {
title => loc('[Reinstate]'),
path => $path . $CFStat . '&id=' . $Ticket->id,
};
Torsten
-----Ursprüngliche Nachricht-----
Von: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] Im Auftrag von Brumm,Torsten / Kuehne + Nagel / Ham MI-ID
Gesendet: Mittwoch, 16. September 2009 15:22
An: rt-users at lists.bestpractical.com
Betreff: [rt-users] How to access a CustomField from Ticket/Tabs
Hi RT Gurus,
is there any way to access the content of a CustomField from Ticket/Elements/Tabs ?
I try to create a new button called "Reinstate" which will set back the status to last know status (stored in a CF).
Something like this:
$actions->{'AC'} = { path => "Ticket/Display.html?Status={CustomFieldValue('OldStat')}&id=" . $id,
title => loc('Reinstate') };
Not sure if this is possible.
Any ideas or solutions as workaround?
Greetings
Torsten
Kuehne + Nagel (AG & Co.) KG, Geschaeftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius (Stellv.), Reiner Heiken (Stellv.), Bruno Mang, Alfred Manke, Christian Marnetté (Stellv.), Mark Reinhardt (Stellv.), Jens Wollesen, Rainer Wunn, Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persoenlich haftende Gesellschaft: Kuehne & Nagel A.G., Sitz: Contern/Luxemburg Geschaeftsfuehrender Verwaltungsrat: Klaus-Michael Kuehne
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com Commercial support: sales at bestpractical.com
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com
More information about the rt-users
mailing list