@ Override @ Deprecated public DataResponse < List < Feature > > getInProgressEstimate ( ObjectId componentId , String teamId , Optional < String > agileType , Optional < String > estimateMetricType ) { Component component = componentRepository . findOne ( componentId ) ; if ( ( component == null ) || CollectionUtils . isEmpty ( component . getCollectorItems ( ) ) || CollectionUtils . isEmpty ( component . getCollectorItems ( ) . get ( CollectorType . AgileTool ) ) || ( component . getCollectorItems ( ) . get ( CollectorType . AgileTool ) . get ( 0 ) == null ) ) { return getEmptyLegacyDataResponse ( ) ; } CollectorItem item = component . getCollectorItems ( ) . get ( CollectorType . AgileTool ) . get ( 0 ) ; SprintEstimate estimate = getSprintEstimates ( teamId , FeatureCollectorConstants . PROJECT_ID_ANY , item . getCollectorId ( ) , agileType , estimateMetricType ) ; List < Feature > list = Collections . singletonList ( new Feature ( ) ) ; list . get ( 0 ) . setsEstimate ( Integer . toString ( estimate . getInProgressEstimate ( ) ) ) ; Collector collector = collectorRepository . findOne ( item . getCollectorId ( ) ) ; return new DataResponse <> ( list , collector . getLastExecuted ( ) ) ; }
Retrieves estimate in - progress of all features in the current sprint and for the current team .