Show
Ignore:
Timestamp:
06/26/08 07:50:48 (4 years ago)
Author:
dcoppola
Message:

added effort diagrams for all versions

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/xml/xsl/kpi-stats-pass-two.xsl

    r1028 r1034  
    507507      </xsl:for-each> 
    508508       
     509      <!-- effort for all versions --> 
     510      <xsl:for-each select="//cms:efforttype[generate-id() = generate-id(key('efforttype-group', .))]"> 
     511         <xsl:variable name="effort_type" select="."/> 
     512         <xsl:call-template name="entry"> 
     513            <xsl:with-param name="key" select="concat($kpi.jira.issue.crs.effort.remaining.all.version.prefix, $effort_type)"/> 
     514            <xsl:with-param name="value" select="sum(//cms:remaining-effort[../../cms:type = $cms.cr.type  
     515                                                     and ../cms:efforttype = $effort_type])"/> 
     516         </xsl:call-template> 
     517         <xsl:call-template name="entry"> 
     518            <xsl:with-param name="key" select="concat($kpi.jira.issue.bugs.effort.remaining.all.version.prefix, $effort_type)"/> 
     519            <xsl:with-param name="value" select="sum(//cms:remaining-effort[../../cms:type = $cms.bug.type 
     520                                                     and ../../cms:external-id 
     521                                                     and ../cms:efforttype = $effort_type])"/> 
     522         </xsl:call-template> 
     523         <xsl:call-template name="entry"> 
     524            <xsl:with-param name="key" select="concat($kpi.jira.issue.bugs.internal.effort.remaining.all.version.prefix, $effort_type)"/> 
     525            <xsl:with-param name="value" select="sum(//cms:remaining-effort[../../cms:type = $cms.bug.type 
     526                                                     and not(../../cms:external-id) 
     527                                                     and ../cms:efforttype = $effort_type])"/> 
     528         </xsl:call-template> 
     529         <xsl:call-template name="entry"> 
     530            <xsl:with-param name="key" select="concat($kpi.jira.issue.tasks.effort.remaining.all.version.prefix, $effort_type)"/> 
     531            <xsl:with-param name="value" select="sum(//cms:remaining-effort[../../cms:type = $cms.task.type 
     532                                                     and ../cms:efforttype = $effort_type])"/> 
     533         </xsl:call-template> 
     534          
     535         <xsl:call-template name="entry"> 
     536            <xsl:with-param name="key" select="concat($kpi.jira.issue.crs.effort.spent.all.version.prefix, $effort_type)"/> 
     537            <xsl:with-param name="value" select="sum(//cms:spent-effort[../../cms:type = $cms.cr.type  
     538                                                     and ../cms:efforttype = $effort_type])"/> 
     539         </xsl:call-template> 
     540         <xsl:call-template name="entry"> 
     541            <xsl:with-param name="key" select="concat($kpi.jira.issue.bugs.effort.spent.all.version.prefix, $effort_type)"/> 
     542            <xsl:with-param name="value" select="sum(//cms:spent-effort[../../cms:type = $cms.bug.type 
     543                                                     and ../../cms:external-id 
     544                                                     and ../cms:efforttype = $effort_type])"/> 
     545         </xsl:call-template> 
     546         <xsl:call-template name="entry"> 
     547            <xsl:with-param name="key" select="concat($kpi.jira.issue.bugs.internal.effort.spent.all.version.prefix, $effort_type)"/> 
     548            <xsl:with-param name="value" select="sum(//cms:spent-effort[../../cms:type = $cms.bug.type 
     549                                                     and not(../../cms:external-id) 
     550                                                     and ../cms:efforttype = $effort_type])"/> 
     551         </xsl:call-template> 
     552         <xsl:call-template name="entry"> 
     553            <xsl:with-param name="key" select="concat($kpi.jira.issue.tasks.effort.spent.all.version.prefix, $effort_type)"/> 
     554            <xsl:with-param name="value" select="sum(//cms:spent-effort[../../cms:type = $cms.task.type 
     555                                                     and ../cms:efforttype = $effort_type])"/> 
     556         </xsl:call-template> 
     557      </xsl:for-each> 
     558       
    509559      <!-- external Jira issues --> 
    510560      <xsl:call-template name="entry">