Difference between revisions of "Template:Bug List Instructions"

From Second Life Wiki
Jump to navigation Jump to search
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 18:37, 24 June 2007

To generate a bug list:

#!/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