Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: Transfer custom field value in ticket: msg#00118

bug-tracking.request-tracker.devel

Subject: RE: Transfer custom field value in ticket


I tried some more combinations without success.

[Wed Mar 30 07:03:17 2005] [error]: Scrip 69 Commit failed: Can't call
method "BaseObj" on an undefined value at (eval 817) line 4.

Stack:
[(eval 817):4]
[/opt/rt3/lib/RT/ScripAction_Overlay.pm:228]
[/opt/rt3/lib/RT/Scrip_Overlay.pm:506]
[/opt/rt3/lib/RT/Scrips_Overlay.pm:191]
[/opt/rt3/lib/RT/Transaction_Overlay.pm:168]
[/opt/rt3/lib/RT/Record.pm:1373]
[/opt/rt3/lib/RT/Ticket_Overlay.pm:720]
[/opt/rt3/lib/RT/Interface/Web.pm:386]
[/opt/rt3/share/html/RTIR/Incident/Display.html:273]
[/opt/rt3/share/html/RTIR/Incident/Create.html:231]
[/opt/rt3/share/html/RTIR/Create.html:351]
[/opt/rt3/share/html/RTIR/autohandler:2]
[/opt/rt3/share/html/autohandler:215]
(/opt/rt3/lib/RT/Action/UserDefined.pm:81)
[Wed Mar 30 07:03:17 2005] [info]: Ticket 691 created in queue
'Incidents' by user (/opt/rt3/lib/RT/Ticket_Overlay.pm:730)


Looking at commit code, problem must be in the second line, I am unable to get
the reference ticket, in the log problem is always the same there is no
reference ticket:

my $CFName = 'CFName';

my $Reference = $self->TicketObj->ReferredToBy->Next; --> Problem must
be here.
my $SourceTicket = $Reference->BaseObj;

$RT::Logger->debug ("source ticket subject: " . $SourceTicket->Subject);

my $CF1Values = $SourceTicket->CustomFieldValues($CFName);

$RT::Logger->debug ("Values for custom field $CFName: " . $CF1Values);

while (my $CurrValue = $CF1Values->Next()) {
my( $st, $msg ) = $self->TicketObj->AddCustomFieldValue (Field =>
$CFName, Value => $CurrValue->Content);

$RT::Logger->debug ("Adding a value to custom field: $st - $msg")
}

return 1;


Thanks for your help.

Juan Ramón Alfageme Mata
+34 91 787 23 00 alhambra-eidos.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
drivers.mtd/200...    security.firewa...    java.openamf.cv...    rpm.yum/2003-08...    telephony.sipp....    file-systems.oc...    qnx.openqnx.dev...    voip.linphone.u...    hardware.sony/2...    network.simulat...    boot-loaders.gr...    ietf.usenet.for...    culture.languag...    emacs.latex.pre...    music.jamiroqua...    xfree86.neomagi...    user-groups.lin...    ltp/2006-08/msg...    kde.kst/2005-08...    programming.too...    os.freebsd.deve...    window-managers...    audio.cd-record...    gnu.fiasco.bugs...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation