line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package IterationData; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
@ISA = qw(XPlanner::Iteration); |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
package XPlanner::Iteration; |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
1111
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
9
|
1
|
|
|
1
|
|
5
|
use base qw(XPlanner::Object); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
232
|
|
10
|
|
|
|
|
|
|
|
11
|
0
|
|
|
0
|
|
|
sub _proxy_class { "IterationData" } |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 NAME |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
XPlanner::Iteration - an iteration within an XPlanner project |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 SYNOPSIS |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
use XPlanner; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
my $xp->login(...); |
24
|
|
|
|
|
|
|
my $iteration = $xp->projects->{"Some Project"} |
25
|
|
|
|
|
|
|
->iterations->{"Some Iteration"}; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
my $stories = $iteration->stories; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
my $story = $iteration->add_story( %story_data ); |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 DESCRIPTION |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
An object representing an iteration within a project in XPlanner |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head2 Methods |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head3 add_story |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
my $story = $iteration->add_story( %story_data ); |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Creates a new story in this $iteration. See XPlanner::Story for what fields |
43
|
|
|
|
|
|
|
should go into %story_data. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=cut |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub add_story { |
48
|
0
|
|
|
0
|
1
|
|
my($self, %args) = @_; |
49
|
0
|
|
|
|
|
|
my $proxy = $self->{_proxy}; |
50
|
0
|
|
|
|
|
|
$args{iterationId} = $self->{id}; |
51
|
|
|
|
|
|
|
|
52
|
0
|
|
|
|
|
|
my $new_story = XPlanner::Story->_init(%args); |
53
|
0
|
|
|
|
|
|
$proxy->addUserStory($new_story); |
54
|
|
|
|
|
|
|
|
55
|
0
|
|
|
|
|
|
return $self->stories->{$new_story->{name}}; |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
sub stories { |
59
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
60
|
|
|
|
|
|
|
|
61
|
0
|
|
|
|
|
|
return $self->_map_from_soap('name', 'getUserStories', 'XPlanner::Story'); |
62
|
|
|
|
|
|
|
} |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
1; |
66
|
|
|
|
|
|
|
|