$issue->Summary( $subject );
$issue->Status( 'New' );
$issue->CreatedBy( $from );
- $issue->AssignedTo( user($cil) );
+ $issue->AssignedTo( CIL::Utils->user($cil) );
$issue->Inserted( $date );
$issue->Updated( $date );
$issue->Description( $body );
sub run {
my ($self, $cil, undef, $issue_name, $filename) = @_;
- my $issue = load_issue_fuzzy( $cil, $issue_name );
+ my $issue = CIL::Utils->load_issue_fuzzy( $cil, $issue_name );
# check to see if the file exists
unless ( -r $filename ) {
}
my $basename = basename( $filename );
- my $user = user($cil);
+ my $user = CIL::Utils->user($cil);
my $add_attachment_text = <<"EOF";
Filename : $basename
sub run {
my ($self, $cil, undef, $issue_name) = @_;
- my $issue = load_issue_fuzzy( $cil, $issue_name );
+ my $issue = CIL::Utils->load_issue_fuzzy( $cil, $issue_name );
CIL::Utils->ensure_interactive();
# create the new comment
my $comment = CIL::Comment->new('tmpname');
$comment->Issue( $issue->name );
- $comment->CreatedBy( user($cil) );
+ $comment->CreatedBy( CIL::Utils->user($cil) );
$comment->Description("Description ...");
CIL::Utils->add_comment_loop($cil, undef, $issue, $comment);
my $issue = CIL::Utils->load_issue_fuzzy( $cil, $issue_name );
# set the AssignedTo for this issue to you (because you're stealing it)
- $issue->AssignedTo( user($cil) );
+ $issue->AssignedTo( CIL::Utils->user($cil) );
$issue->save($cil);
CIL::Utils->display_issue($cil, $issue);