Summary =
Status =New
CreatedBy =$gan <$gae>
+AssignedTo =$gan <$gae>
Labels =
Description = <<END_OF_DESCRIPTION
my $summary = $issue->Summary;
my $status = $issue->Status;
my $created_by = $issue->CreatedBy;
+ my $assigned_to = $issue->AssignedTo;
my $labels = $issue->Labels;
my $description = $issue->Description;
Summary = $summary
Status = $status
CreatedBy = $created_by
+AssignedTo = $assigned_to
Labels = $labels
Description = <<END_OF_DESCRIPTION
$description
}
# for the fields we're interested in, set them
- foreach my $field ( qw(Summary Status CreatedBy Labels Description) ) {
+ foreach my $field ( qw(Summary Status CreatedBy AssignedTo Labels Description) ) {
$issue->$field( $issue_edited->$field() );
}
if ( $issue->changed ) {
$msg .= "\t";
$msg .= $issue->Status;
$msg .= "\t";
- $msg .= $issue->CreatedBy;
+ $msg .= $issue->AssignedTo;
$msg .= "\t";
$msg .= $issue->Summary;
field( 'Summary', $issue->Summary() );
field( 'Name', $issue->Name() );
field( 'CreatedBy', $issue->CreatedBy() );
+ field( 'AssignedTo', $issue->AssignedTo() );
field( 'Inserted', $issue->Inserted() );
field( 'Status', $issue->Status() );
field( 'Labels', $issue->Labels() );
field( 'Name', $issue->Name() );
field( 'Status', $issue->Status() );
field( 'CreatedBy', $issue->CreatedBy() );
+ field( 'AssignedTo', $issue->AssignedTo() );
field( 'Inserted', $issue->Inserted() );
field( 'Updated', $issue->Inserted() );
field( 'Labels', $issue->Labels() );
use YAML qw(LoadFile DumpFile);
use base qw(CIL::Base);
-__PACKAGE__->mk_accessors(qw(Name Summary Status Labels Comments));
+__PACKAGE__->mk_accessors(qw(Name Summary AssignedTo Status Labels Comments));
-my @FIELDS = ( qw(Name Summary Description CreatedBy Status Labels Comments) );
+my @FIELDS = ( qw(Name Summary Description CreatedBy AssignedTo Status Labels Comments) );
## ----------------------------------------------------------------------------
my $issue = CIL::Issue->new();
# do the issue
- foreach my $field ( qw(Summary Name Description CreatedBy Status Labels Inserted Updated) ) {
+ foreach my $field ( qw(Summary Name Description CreatedBy AssignedTo Status Labels Inserted Updated) ) {
# modify the data directly, otherwise Updated will kick in
$issue->{data}{$field} = $data->{$field};
}
}
my $issue = CIL::Issue->new();
- foreach my $field ( qw(Summary Name Description CreatedBy Status Labels Inserted Updated) ) {
+ foreach my $field ( qw(Summary Name Description CreatedBy AssignedTo Status Labels Inserted Updated) ) {
# modify the data directly, otherwise Updated will kick in
my $value = $cfg->val( 'Issue', $field );
next unless defined $value;