agile metrics: velocity, bug tracking, and how to talk...

25
© Ryland Leyton 2017 Page 1 Agile Metrics: Velocity, Bug Tracking, and How To Talk About “When Will You Be Finished?” Ryland Leyton [email protected] www.RylandLeyton.com

Upload: others

Post on 26-Jun-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 1

Agile Metrics: Velocity, Bug Tracking, and How To Talk About “When Will You Be Finished?”

Ryland Leyton

[email protected]

www.RylandLeyton.com

Page 2: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 2

Ryland Leyton, CBAP, PMP, CSM, is a business analyst, speaker, educator, Agile coach, and technology translator. He has worked in the technology sector since 1998, starting off with database and web programming, gradually moving through project management and finding his passion in the BA field.

Ryland is employed as Lead Business Analyst at Aptos.com.

Ryland is passionate about strong analysis practice and prefers Agile environments where possible. He has built both Agile and waterfall SDLC processes for development teams, customizing each one to the challenges facing that particular client group.

He is an active member of his local chapter of the IIBA, speaks at local and national conferences, and serves as an Agile coach and educator.

Ryland is a core team author of V2 of the Agile Extension to the BABOK.

Ryland’s book, “The Agile Business Analyst” has received excellent critical reviews and is available on Amazon.com.

About Ryland

www.RylandLeyton.com

[email protected]

Available at www.Amazon.com

Page 3: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 3

Where are we going today?

• Understand burn-up charts and their use in project planning and estimation.

• Understand defect tracking and the value for agile teams.

• Consider approaches for communicating project planning issues for stakeholders and leadership.

Page 4: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 4

Velocity & Project Planning

Page 5: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 5

Full agile software development lifecycle

Sprint Backlog

Daily Standup

One Sprint

Shippable product

Sprint Planning User feedback

about product

Team Retrospective

Feedback is incorporated into

backlog prioritization

Backlog re-prioritized & updated

Removed

Re-prioritized

NewTeam improvement ideas incorporated into next sprint &

sprint planning

Page 6: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 6

Velocity is a measure of how fast we build shippable product

After a team has had several sprints of working together the velocity metric should be reasonably accurate.

Sprint Backlog

Daily Standup

One Sprint

Shippable product

“Scrum machine”

Page 7: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 7

A few notes about velocity…

• Velocity is specific to each team.

• NEVER compare teams by their velocity for any purpose. • This will cause all kinds of team and management problems that you do not want.

• Velocity is a good measure of how a team does the kind of work they’ve been doing. • If the nature of the work changes, velocity might change as well.

• Some things that will cause team velocity to “take a hit”:• Changing team members - adding or removing, doesn’t matter.

• Changing the type of work, the technology, or the product.

• Changes to expected work practices or schedules.

• Changes to definitions of ready or done.

Page 8: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 8

1 2 3 4 5 6 7 8 9 10

RUNNING AVERAGE 10 11 13 13 12 12 12 12 12 12

POINTS THIS SPRINT 10 12 16 12 8 14 12 10 14 12

6

7

8

9

10

11

12

13

14

15

16

17

18

Tracking & estimating velocity• Over time, the story points

the team accomplishes each sprint will settle into a fairly reliable average.

• This is referred to the teams’ velocity.

• This is an estimate of the work the team produces over time.

Team Velocity Over Time

Sprint by sprint story points completed

Running average of per-sprint completed story points

Page 9: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 9

Burnup chart

Burnup charts are used to project estimated progress for future sprints.

This is used in conjunction with rough estimation to determine how much the team might deliver in the next several sprints when doing release planning or product road mapping.

The x-axis here is entire sprints of already accomplished work and a projection of what is likely to be possible for the team in the future.

Sprint

Cu

mu

lati

ve S

tory

Po

ints

-

50

100

150

200

250

300

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

POINTS THIS SPRINT CUMULATIVE POINTS PROJECTED POINTS

Burnup Chart Of Projected Cumulative Points

Page 10: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 10

-

10

20

30

40

50

60

70

80

90

100

110

120

130

1 2 3 4 5 6 7 8 9 10

POINTS THIS SPRINT CUMULATIVE POINTS TARGET POINTS

Velocity and release planning

10

• Once a team has a reliable estimate of their velocity, they can use it in release planning

• By dividing the estimate of the release by the number of points they generally achieve each sprint, they can give a reasonable answer about how long it will take to achieve these results

• IF you’re doing a date-drivenrelease, and this date is past what you want, you’ll have to cut scope

• IF you’re doing a feature based release, this tells you about how soon you can release this feature

Target number of points

Sprint by which you’re likely to have accumulated this number of points. (Here, probably sprint 5, if everything goes just right. Could be sprint 4 or 6.)

ESTIMATING A RELEASE DATE

Page 11: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 11

Burndown chart

More an aspect for the scrum master and overall team management within a sprint, the burndown chart shows how the team is progressing within the sprint period towards the committed sprint goal.

The two lines are the “straight line” progress (which is almost never how it works!) and the actual plotted progress over the period of the sprint.

Typical shape feature: very little work is completed (“done”) in the first few days, then things speed up as work is checked in and QA passed.

SAMPLE SPRINT BURNDOWN CHART

0

2

4

6

8

10

12

14

WEDS THURS FRI SAT SUN MON TUES WEDS THURS FRI SAT SUN MON TUES WEDS

PERFECT TYPICAL

Page 12: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 12

Tracking bugs and defects

Page 13: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 13

Some terms to help us talk about this:Bug or Defect

• Something that is not working as designed.

• If something IS working as designed but you don’t like how it works that is not a bug. That is new work.

New bugs• Newly reported errors.

• Some teams limit this to “validated” bugs, or distinguish between them.

Fixed bugs• The bugs you have corrected this period.

• Bug “weight”• The accumulated number of bugs that are not fixed.

Page 14: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 14

Bug chart

0

10

20

30

40

50

60

70

80

1 2 3 4 5 6 7 8 9 10

Qu

anti

ty

Sprint

Bug Tracking

New bugs Fixed bugs Bug weight 3 per. Mov. Avg. (Bug weight)

Dotted trendline shown here is a moving 3- sprint average.

Page 15: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 15

A few things about bugs & bug tracking

• Fixing bugs always requires capacity.

• A typical best practice is for teams to fix their own bugs.

• There are several schools of thought about how to approach bugs:• Same team as wrote the software.

• Dedicated portion of capacity vs. fitting them in backlog like any PBI.

Page 16: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 16

Communicating project status

Page 17: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 17

Things you get asked about project status:

• “How is it going?”

• “When will you be done?”

• “When can we release?”

• “Will you be done with everything by the release date?”

• “How much do you have left?”

…and of course, more variations all having to do with what & when.

Page 18: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 18

Your best answer is a range answer

• Range answers communicate the uncertainty inherent in agile work.

• In planning, this is sometimes called “The Cone of Uncertainty”.

Page 19: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 19

Projection & range answers early in the release

1 2 3 4 5 6 7 8 9 10

Average 12 24 36 48 60 72 84 96 108 120

10% 13 26 40 53 66 79 92 106 119 132

-10% 11 22 32 43 54 65 76 86 97 108

25% 15 30 45 60 75 90 105 120 135 150

-25% 9 18 27 36 45 54 63 72 81 90

0

20

40

60

80

100

120

140

160

Projections At Start

At the beginning, my range answer is:“In 10 sprints, the team will probably have accomplished between 108 and 132 points.” (Range of 24 points.)“If things are radically different than we expect it could be as low as 90, or as good as 150.” (Range of 60 points.)

Page 20: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 20

Projection & range answers midpoint in the release

1 2 3 4 5 6 7 8 9 10

Average 12 24 36 48 60 72 84 96 108 120

10% 60 73 86 100 113 126

-10% 60 71 82 92 103 114

25% 60 75 90 105 120 135

-25% 60 69 78 87 96 105

0

20

40

60

80

100

120

140

160

Projections At Midpoint

At the midpoint, my range answer is:“So far, we’ve held a sprint average of 12 points, totaling 60 so far.”“In 5 more sprints, the team will probably have accomplished a total of between 114 and 126.” (Range of 12 points.)“If things are radically different than we expect it could be as low as 105, or as good as 135.” (Range of 30 points.)

Page 21: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 21

“Given our velocity and projections, we are likely to get to [this point] on the backlog….”

-25% Worse

-10% Worse

Average

+10% Better

+25% Better 135

120

105

Your projections at the midpoint of your release.

0 Points

200 Points

100 Points

ProductBacklog

60 Points already accomplished

ProductBacklog

0 Points

200 Points

100 Points-10% Worse

-25% Worse

Your projections at the beginning of the release.

Average

+10% Better

+25% Better 150

120

90

Zero points already accomplished

Must Do

Should Do

Could Do

Won’t Do

Page 22: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 22

And now, how you say it to real people:

Question Answer

Fixed date releaseHow are you doing?

At beginning:We think it is likely we will get through all the “Must Do” items by the end of sprint 10.We are not yet sure if we will get to any of the “Should Do” items, it’s too early to have confidence one way or the other. Ask me again in three sprints and I’ll know more.

At midpoint:We are almost certainly going to get through all the “Must Do” items, probably by sprint 7 or 8.We are very likely to get through most, if not all, of the “Should Do” items by sprint 10.We probably won’t get further than that.

Feature based releaseWhen can we release?

At beginning:Assuming we have our usual velocity, you can have the “Must Do” items in roughly 7 to 10 sprints.

At midpoint:It is sprint 5 and we’ve gotten 2/3 of the “Must Do” items done. We are very likely to complete the rest of them by the end of sprint 7 or 8.If you want some or all of the “Should Do” items, we will probably have to run to sprint 10.

Page 23: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 23

Some things to consider

• If you tackled the hardest, most risky, or novel parts of the work early it is possible that velocity will have been lower at the start and will increase towards the end. The opposite is also true.

• Factor in holidays, PTO, training, and anything else that would significantly affect the total points you can expect in the release. • As best you can, reflect this in your projections of any given sprint.

• Example: You know that during sprint 6, several very experienced members of your team are going to a conference for ½ the sprint, so adjust your points expected for that sprint down.

…Remember, always take input from the team about the work projection.

Page 24: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 24

Initial Rough Work Planning (T-shirt sizes and sprints, not story points)

Item Cumulative

EPIC T-SHIRT SIZE Low High Low HighCumulativeVariability

1 Large 3.0 5.0 3.0 5.0 2.0 BEST CASE AVERAGE CASE WORST CASE

2 Small 0.5 1.0 3.5 6.0 2.5 BEST CASE AVERAGE CASE WORST CASE

3 Medium 1.0 3.0 4.5 9.0 4.5 BEST CASE AVERAGE CASE WORST CASE

4 Medium 1.0 3.0 5.5 12.0 6.5 BEST CASE AVERAGE CASE WORST CASE

5 Medium 1.0 3.0 6.5 15.0 8.5 BEST CASE AVERAGE CASE WORST CASE

6 Small 0.5 1.0 7.0 16.0 9.0 BEST CASE AVERAGE CASE WORST CASE

7 Small 0.5 1.0 7.5 17.0 9.5 BEST CASE AVERAGE CASE WORST CASE

8 Xtra Large 5.0 8.0 12.5 25.0 12.5 BEST CASE AVERAGE CASE

9 Large 3.0 5.0 15.5 30.0 14.5 BEST CASE AVERAGE CASE

10 Large 3.0 5.0 18.5 35.0 16.5 BEST CASE

11 Small 0.5 1.0 19.0 36.0 17.0 BEST CASE

12 Medium 1.0 3.0 20.0 39.0 19.0 BEST CASE

13 Large 3.0 5.0 23.0 44.0 21.0 BEST CASE

14 Medium 1.0 3.0 24.0 47.0 23.0 BEST CASE

15 Medium 1.0 3.0 25.0 50.0 25.0

16 Large 3.0 5.0 28.0 55.0 27.0

17 Large 3.0 5.0 31.0 60.0 29.0

18 Large 3.0 5.0 34.0 65.0 31.0

19 Medium 1.0 3.0 35.0 68.0 33.0

20 Small 0.5 1.0 35.5 69.0 33.5

DEFINITIONS LOW HIGH

Small 0.50 1.00

Medium 1.00 3.00

Large 3.00 5.00

Xtra Large 5.00 8.00

Release Velocity 24

Three teams, each with 8 Sprints

The units used in this example is SPRINTS, not points.

Read the “Definitions” table like this:

“A small epic will take between one-half and one whole sprint for one team.”

“A medium epic will take between one whole and three whole sprints for one team.”

Register at www.RylandLeyton.comfor an excel version of this page.

Page 25: Agile Metrics: Velocity, Bug Tracking, and How To Talk ...rylandleyton.com/wp-content/uploads/2018/03/RYLAND... · Ryland is employed as Lead Business Analyst at Aptos.com. Ryland

© Ryland Leyton 2017 Page 25

Ryland Leyton, CBAP, PMP, CSM, is a business analyst, speaker, educator, Agile coach, and technology translator. He has worked in the technology sector since 1998, starting off with database and web programming, gradually moving through project management and finding his passion in the BA field. Ryland is employed as Lead Business Analyst at Aptos.com.

Ryland is passionate about strong analysis practice and prefers Agile environments where possible. He has built both Agile and waterfall SDLC processes for development teams, customizing each one to the challenges facing that particular client group.

He is an active member of his local chapter of the IIBA, speaks at local and international conferences, and serves as an Agile coach and educator.

Ryland is a core team author of V2 of the Agile Extension to the BABOK.

Ryland’s book, “The Agile Business Analyst” has received excellent critical reviews and is available on Amazon.com.

About Ryland

www.RylandLeyton.com

[email protected]

Available at www.Amazon.com