Join the DZone community and get the full member experience.Join For Free
have you heard phrases like, "well, our velocity last iteration was 3, but our average is still 22"?
have you ever heard the phrase, "dude, we need to get this velocity stable."
have you worked on teams where they took partial credit for done at the end of the iteration? where maybe you'd split a card strictly on points and award some apportion to the current iteration and assign the remainder of the card to the next iteration.
velocity should stabilizeit seems much of what we read tells us that velocity will do two things; stabilize and improve. according to the versionone agile 101, we can expect that velocity will stabilize within three to six months . the agile sherpa tells us it usually takes 3-4 iterations for velocity to stabilize at a consistent level . james shore's "the art of agile" tells us to give it three or four iterations to stabilize .
but what if velocity doesn't stabilize?first, take a deep breath; and then repeat after me:
if you have an erratic velocity, it is telling you of a problem. and your problem is not an erratic velocity.
"velocity is a health indicator. velocity is a health indicator. velocity is a health indicator. velocity is ..."
velocity lets us know how things are going. it reveals issues to us in sometimes subtle ways.
think of velocity as heart rate. an abnormal heart rate, be it too fast, too slow, or irregular can indicate a number of underlying issues such as electrolyte imbalance, overstimulation, insufficient rest, autoimmune disorders, thyroid problems, or various forms of heart disease. if you have an abnormal heart rate, it is telling you of a problem. and your problem is not an abnormal heart rate.
an erratic velocity can indicate a number of underlying issues such as poor story composition, dependencies on other teams or individuals, too much work in progress, silos, and various forms of mismanagement. if you have an erratic velocity, it is telling you of a problem. and your problem is not an erratic velocity.
whatever the underlying problem, it is something you can adjust. adjustments for which you can observe the outcome. but the important thing to remember is that the velocity is not the problem. do not try to fix the velocity. try to figure out what it is telling you and fix that.
what should i adjust?
...poor story composition, dependencies on other teams or individuals, too much work in progress, silos, and various forms of mismanagement.
if an erratic velocity could be telling me any number of things, then how do i know what to adjust? ask your team. they probably know. they may not know they know, but they can give you indicators.
let's look through some of the common underlying causes.
poor story compositionby story composition, i mean story size and dependencies. the larger the story, the more risk there is of getting it to done. but it is not just about making stories small. it is about making them small and independent. small stories that cannot be delivered independent of one another are really just tasks for a large story.
if we have an issue with proper story composition, we may find we get several stories close to done, but we cannot run acceptance tests on them until all of them are complete, leaving us with too much testing at the end of the iteration. it we don't get all of the stories ready, none of them can move. then, next iteration, we complete the last strays and a glut of cards/points move to done. alternatively, some stories are just too big to complete in a single iteration.
mike cohn has a number of good resources on creating user stories . there is no need to get your stories perfect up front. get them good enough to do a high-level estimate; think epics. then as you start planning releases, break them down into features to get a finer-course estimate. finally, as you plan iterations, break them down again into small, independently deliverable items. beware the temptation to split stories across technical seams. instead, focus on small stories that are thin vertical slices through the technology stack.
dependencies on other teams or individualsperhaps your product owner is not available often enough and there is too much re-work due to slow feedback cycles. maybe you haven't rights to your various environments and code migrations are executed in durations of days rather than minutes. it's possible some other technical team is not able to be as responsive or relies on process more than interactions for the exchange of information. whatever it might be, any point where you need to wait for extended periods of time, is likely to lead to other problems. you can't sit idle, so you grab another card to work on, leading to too much work in progress.
work with these teams and individuals on ways to automate processes or find other ways to reduce their response time. invite sponsors and others to your stand-ups, iteration planning, and retrospectives. if they consistently don't show, see if you can get another representative. be professional and courteous, but there is no need to be completely deferent. if the project is important, you should be able to ask for the necessary support.
too much work in progressthis is a remarkably common issue. in my experience, management often encourages this behavior. i don't know if it is the notion that we will get more done if we work on more things simultaneously. or perhaps there is a fear we won't get enough things done unless we work on several of them at once.
but what happens when we try to work on a few stories each? remarkably, we make progress on several, but complete precious few. the more work in flow, the more context switching we all need to make. coordination of the stories complicates testing and migrations. we look busy, but at the end of the iteration, we've fewer things complete. then, at the beginning of the next iteration, a glut of work moves to done, setting us up with a couple day delay wrapping up the prior iteration and pushing us into yet another complicated cycle.
drive each card to completion before picking up the next one. if a card is blocked, make getting it un-blocked a priority rather than letting it wait three days because george on the dba team has a three-day sla.
silosmost teams i work with have three distinct roles; ba, developer, and qa. most teams i work with have three distinct phases of their work; gather requirements, build, verify. even on agile teams, these separations exist. there are clear delineations in the process and clear segregation of responsibilities. but this segregation is a contributor to erratic velocity. how many "agile" teams do you know of where the ba group is an iteration ahead of the developers who are an iteration ahead of qa, leaving us with a three-iteration cycle time and significant lag in our feedback loops between the groups?
tighten the loops. get people working together in not only close proximity, but close time-frame. involve the developers and qa in the formation of requirements. push qa to the front and automate, automate, automate. don't let manual testing be a bottle neck. start development before you've polished the requirements. and don't wait until the end to test it all comprehensively.
various forms of mismanagementherein lies my primary onus for the mantra, "agile ain't practices". agile is a set of values.
working software over comprehensive documentation
customer collaboration over contract negotiation
responding to change over following a plan
address the actual problem and use velocity to tell you if you have, in fact, done so.
i see organization after organization pick up practices in the name of agile and apply them devoid of the values. most popular seems to be daily stand-ups and burn-down charts; two tools that provide project management quick feedback on status so that they can make informed decisions about items such as task assignment or if the team needs to put in extra hours to make the deadline. (by the way, that sentence should make you cringe)
assigning tasks, driving for excellence in estimating, pushing for points, treating code as if it is only a means to an end, role-based incentives, making the team's decisions for them, leaving the team to make all the decisions (they are self-organizing after all), splitting people's assignment across teams (they only need 1.5 qa), burdensome process, and failure to address impediments are but a few examples of mismanagement.
don't mess with the mathdon't split cards on points and award some apportion to the current iteration and assign the remainder of the card to the next iteration. i am confident this will normalize your velocity. much like taking cough medicine subdues your cough. neither of them cures the real problem. they merely hide the symptoms in hopes the real problem will run its course. erratic velocity is the result of issues that, left unaddressed, are highly unlikely to run their course.
address the actual problem and use velocity to tell you if you have, in fact, done so.
Published at DZone with permission of Doc Norton, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.