Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Adding See also to bugs

11 views
Skip to first unread message

rojanu

unread,
May 15, 2013, 1:03:48 PM5/15/13
to
Hi I am writing a class to import bugs from a bug tracker

I need to update the see also field of the bugs, I have

foreach my $ids (@$result){
my ($bug_id, $see_also) = @$ids;
my $bug = Bugzilla::Bug->check($bug_id);
if(!@{$bug->see_also}){
$self->debug("Linking Bugs: $bug_id <-> $see_also");
my %set_all_fields;

$set_all_fields{who} = $self->config('default_assignee');
$set_all_fields{see_also}->{add} = [$see_also];

$bug->set_all(\%set_all_fields);
$bug->update();
}

But this fields are not enough to update the bug as the DB constraints are not satisfied. What other fields do I need?

Thanks,
rojanu
0 new messages