Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 315129 Details for
Bug 460351
Create new custom field 'PM Score' for use by product management
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Test perl script to update the new pm score field
updateBug_xmlrpc.pl (text/plain), 1.20 KB, created by
David Lawrence
on 2008-08-27 18:21:33 UTC
(
hide
)
Description:
Test perl script to update the new pm score field
Filename:
MIME Type:
Creator:
David Lawrence
Created:
2008-08-27 18:21:33 UTC
Size:
1.20 KB
patch
obsolete
>#!/usr/bin/perl -w > >use XMLRPC::Lite; >use Data::Dumper; >use HTTP::Cookies; > >################################### ># Need to login first # >################################### > >my $username = shift; >my $password = shift; > >my $cookie_jar = new HTTP::Cookies( file => "/tmp/lwp_cookies.dat" ); > >my $rpc = new XMLRPC::Lite( > proxy => 'https://bugzilla.redhat.com/xmlrpc.cgi' ); > >$rpc->transport->cookie_jar($cookie_jar); > >my $call = $rpc->call( 'User.login', > { login => $username, password => $password } ); > >if ( $call->faultstring ) { > print $call->faultstring . "\n"; > exit; >} > ># Save the cookies in the cookie file >$rpc->transport->cookie_jar->extract_cookies( > $rpc->transport->http_response ); >$rpc->transport->cookie_jar->save; > >print "Successfully logged in.\n"; > >################################### ># Main call here # >################################### > >my $bugid = shift; >my $pm_score = shift; > >$call = $rpc->call( 'Bug.update', { ids => [$bugid], updates => { pm_score => $pm_score, comment => 'Updating PM score.' }} ); > >my $result = ""; >if ( $call->faultstring ) { > print $call->faultstring . "\n"; > exit; >} >else { > $result = $call->result; >} > >print Dumper($result);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 460351
:
315128
| 315129