string TranslateState(PivotalStoryState state)
{
switch(state) {
case PivotalStoryState.Unscheduled: return "unscheduled";
case PivotalStoryState.Unstarted: return "unstarted";
case PivotalStoryState.Started: return "started";
case PivotalStoryState.Finished: return "finished";
case PivotalStoryState.Delivered: return "delivered";
case PivotalStoryState.Accepted: return "accepted";
case PivotalStoryState.Planned: return "planned";
case PivotalStoryState.Rejected: return "rejected";
}
throw new KeyNotFoundException();
}