Difference between revisions of "Template:Bug List Instructions"
Jump to navigation
Jump to search
Rob Linden (talk | contribs) m (Template:Generate Bug List moved to Template:Bug List Instructions: I'm fickle) |
Gigs Taggart (talk | contribs) |
||
Line 13: | Line 13: | ||
$title =~ s/^\[[^\]]*\] //; | $title =~ s/^\[[^\]]*\] //; | ||
$key = $item->{key}->{content}; | $key = $item->{key}->{content}; | ||
$votes = $item->{votes}; | |||
$reporter = $item->{reporter}->{username}; | $reporter = $item->{reporter}->{username}; | ||
print "* {{jira|$key}} - $title - {{User|$reporter}}\n"; | print "* {{jira|$key}} - Votes: $votes - $title - {{User|$reporter}}\n"; | ||
} | } | ||
</pre> | </pre> | ||
* Pick a reasonable cutoff point, and save the output | * Pick a reasonable cutoff point, and save the output |
Revision as of 17:37, 24 June 2007
To generate a bug list:
- Save a copy of the XML file for "Bugs, sorted by LL ID"
- Run this perl script on the xml file
#!/usr/bin/env perl use XML::Simple; my $bugs = XMLin($ARGV[0]); foreach my $item (@{$bugs->{channel}->{item}}) { $title = $item->{title}; $title =~ s/^\[[^\]]*\] //; $key = $item->{key}->{content}; $votes = $item->{votes}; $reporter = $item->{reporter}->{username}; print "* {{jira|$key}} - Votes: $votes - $title - {{User|$reporter}}\n"; }
- Pick a reasonable cutoff point, and save the output