It's all about the answers!

Ask a question

how to calculate OTD percentage from Jazz reporting service reports


Rohini Puttaraju (1112) | asked May 09 '16, 2:20 a.m.
edited May 09 '16, 4:01 a.m.

I have an use case to calculate the OTD percentage

 For given Filed against, work items with OTD_Met and OTD_NotMet should display as percentage in the graph

OTD_Met- Resolved end date is less than the iteration end date

OTD_NotMet- Resolved end date is greater than the iteration end date

I have used advanced query as we don't have iteration end date in the query builder.

The query is now working for count. But we need percentage

 Could you please check  the query and let me know if you have solution for this use case

select
T1.Request_type,
T1.REQUEST_CATEGORY_NAME as FiledAgainst,
       CAST(COUNT(DISTINCT CASE WHEN (CAST(CAST(T2.END_DATE AS DATE) - CAST(T1.RESOLVED_DATE AS DATE) AS INTEGER) > 1 ) THEN T1.REQUEST_ID END ) AS DECIMAL) AS OTD_Met ,
       CAST(COUNT(DISTINCT CASE WHEN (CAST(CAST(T1.RESOLVED_DATE AS DATE) - CAST(T2.END_DATE AS DATE) AS INTEGER) > 1 ) THEN T1.REQUEST_ID END ) AS DECIMAL) AS OTD_NotMet          
FROM RIDW.VW_REQUEST T1, RIDW.VW_ITERATION T2
WHERE T1.PROJECT_ID = 16  AND
(  (T1.REQUEST_TYPE = 'Defect' OR T1.REQUEST_TYPE = 'Story' ) AND
  T1.Iteration_ID =T2.Iteration_ID AND
    T1.REQUEST_CATEGORY_NAME = '$REQUEST_CATEGORY_NAME$'       
) AND
(T1.ISSOFTDELETED = 0) AND
(T1.REQUEST_ID <> -1 AND T1.REQUEST_ID IS NOT NULL) group by T1.REQUEST_CATEGORY_NAME, T1.Request_type


Thanks in advance


Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.