Отчет Issue Summary позволяет пользвателям выбрать проект и увидить проблемы связанные с этим проектом. Отчет включает следующую информацию:
Date first issue identified
Total number of issues
Number of issues by status
Number of open issues by priority
Assignments by status
To create this report, you code the information in two SQL statements. The first statement gathers information having a singular result and the second statement gathers information having multiple results.
294. Добавим Issue Summary by Project report: выберите Application home page, выберите Create Page, выберите Report и Next, выберите SQL Report и Next,
295. For Page Attributes: в поле Page введите 9, в поле Page Name введите Issue Summary by Project, в Breadcrumb выберите Breadcrumb, в Parent Entry выберите Reports ссылку, и Next.
296. Для вкладок: выберите Use an existing tab set and reuse an existing tab within that tab set, в списке Tab Set выберите Issue Tracker (Home, Dashboard, Projects...) и Next.
297. В списке Use Tab выберите T_REPORTS: label="Reports" и Next.
298. В SQL Query введите
SELECT MIN(identified_date) first_identified,
MAX(actual_resolution_date) last_closed,
COUNT(issue_id) total_issues,
SUM(DECODE(status,'Open',1,0)) open_issues,
SUM(DECODE(status,'On-Hold',1,0)) onhold_issues,
SUM(DECODE(status,'Closed',1,0)) closed_issues,
SUM(DECODE(status,'Open',decode(priority,null,1,0),0)) open_no_prior,
SUM(DECODE(status,'Open',decode(priority,'High',1,0),0 )) open_high_prior,
SUM(DECODE(status,'Open',decode(priority,'Medium',1,0) ,0)) open_medium_prior,
SUM(DECODE(status,'Open',decode(priority,'Low',1,0),0) ) open_low_prior
FROM it_issues
WHERE related_project_id = :P9_PROJECT
299. Нажмите Next.
300. В спике Region Template выберите List Region with Icon (Chart), в списке Report Template выберите default: vertical report, look 1 (include null columns), в поле Region Name введите Summary, остальное по умолчанию и Next, нажмите Finish.
Имеем первый запрос, у которого надо отредактировать заголовки и создать элемент контроля связанных проектов. Сначала создаем область вверху отчета содержащая параметры проекта.
301. Создаем поисковую область: выберите Edit Page 9, в области Regions выберите Create, выберите HTML и Next, выберите HTML for region container и Next.
302. В поле Title введите Issue Summary Report Parameters, в списке Region Template выберите Report Filter - Single Row, в списке Display Point выберите Page Template Body (2. items below region content), в поле Sequence введите 5, остальное по умолчанию и Next, нажмите Create Region.
303. Создаем элемент проекта: в области Items выберите Create, выберите Select List и Next, выберите Select List, и Next, в поле Item Name введите P9_PROJECT, в поле Sequence введите 31, в списке Region -выберите Issue Summary Report Parameters (1) 5, и Next, в списке Named LOV выберите PROJECTS, в поле Null Text введите - Select -, в поле Null Value введите - 1 и Next, для Item Attributes выберите по умолчанию и Next, в поле Default введите -1, нажмите Create Item.
304. Создаем кнопку: в области Buttons выберите Create, в списке Button Region выберите Issue Summary Report Parameters и Next, выберите Create a button displayed among this region's items и Next, в поле Button Name введите P9_GO, в поле Sequence введите 33, в поле Label введите GO, в поле Request введите Go, в списке Button Style выберите Template Based Button, в списке Template выберите Button, нажмите Create Button.
305. Создаем кнопку Reset очищающую запрос: в области Buttons выберите Create, в списке Button Region выберите Issue Summary Report Parameters и Next, выберите Create a button displayed among this region's items, и Next, в поле Button Name введите P9_RESET, в поле Sequence введитеr 32, в поле Label введите Reset, в поле Request введите Reset, в списке Button Style выберите Template Based Button, в списке Template выберите Button, нажмите Create Button.
306. To create a Reset branch: в области Branches выберите Create, далее по умолчанию и Next, в поле Page введите 9, выберите Reset Pagination for this page, в поле Clear Cache введите 9, и Next, в списке When Button Pressed, select *P9_RESET, нажмите Create Branch.
306. Создаем область вверху отчета: в области Regions выберите Create, выберите Report и Next, выберите SQL Report for region container и Next, в поле Title введите Assignments by Status, в списке Region Template выберите No Template, в поле Sequence введите 20, остальное по умолчанию и Next.
307. В SQL Query or PL/SQL function returning a SQL Query введите
SELECT p.person_name,i.status,
COUNT(i.issue_id) issues
FROM it_issues i, it_people p
WHERE i.related_project_id = :P9_PROJECT
AND i.assigned_to_person_id = p.person_id
GROUP BY person_name, status
308. Нажмите Next.
309. В поле For Rows per Page введите 20 и Next.
310. В списке Condition Type выберите Value of Item in Expression 1 != Expression 2, в поле Expression 1 введите P9_PROJECT, в поле Expression 2 введите -1, нажмите Create Region.