Actions
요구사항 #410
closedStart date:
09/11/2024
Due date:
% Done:
0%
Estimated time:
Description
-
룰 셋 API 데이터
클라우드 지라 상태 카테고리 key별 그룹화 후 상태명 별 count 확인
{ "new": { "12345": { "statusCategoryKey": "new", "statusName": "12345", "count": 1, "priority": 0 }, "다시 열림": { "statusCategoryKey": "new", "statusName": "다시 열림", "count": 4, "priority": 0 }, "Waiting for approval": { "statusCategoryKey": "new", "statusName": "Waiting for approval", "count": 4, "priority": 0 }, "Selected for Development": { "statusCategoryKey": "new", "statusName": "Selected for Development", "count": 3, "priority": 0 }, "검토": { "statusCategoryKey": "new", "statusName": "검토", "count": 4, "priority": 0 }, "미해결": { "statusCategoryKey": "new", "statusName": "미해결", "count": 4, "priority": 0 }, "Backlog": { "statusCategoryKey": "new", "statusName": "Backlog", "count": 3, "priority": 0 }, "해야 할 일": { "statusCategoryKey": "new", "statusName": "해야 할 일", "count": 5, "priority": 0 }, "Under review": { "statusCategoryKey": "new", "statusName": "Under review", "count": 4, "priority": 0 }, "리팩토링 중": { "statusCategoryKey": "new", "statusName": "리팩토링 중", "count": 1, "priority": 0 } }, "indeterminate": { "Building": { "statusCategoryKey": "indeterminate", "statusName": "Building", "count": 1, "priority": 0 }, "Build Broken": { "statusCategoryKey": "indeterminate", "statusName": "Build Broken", "count": 1, "priority": 0 }, "Waiting for customer": { "statusCategoryKey": "indeterminate", "statusName": "Waiting for customer", "count": 4, "priority": 0 }, "테스트1": { "statusCategoryKey": "indeterminate", "statusName": "테스트1", "count": 1, "priority": 0 }, "Under investigation": { "statusCategoryKey": "indeterminate", "statusName": "Under investigation", "count": 4, "priority": 0 }, "Work in progress": { "statusCategoryKey": "indeterminate", "statusName": "Work in progress", "count": 4, "priority": 0 }, "테스트2": { "statusCategoryKey": "indeterminate", "statusName": "테스트2", "count": 1, "priority": 0 }, "진행 중": { "statusCategoryKey": "indeterminate", "statusName": "진행 중", "count": 12, "priority": 0 }, "Authorize": { "statusCategoryKey": "indeterminate", "statusName": "Authorize", "count": 5, "priority": 0 }, "Awaiting implementation": { "statusCategoryKey": "indeterminate", "statusName": "Awaiting implementation", "count": 5, "priority": 0 }, "계획 중": { "statusCategoryKey": "indeterminate", "statusName": "계획 중", "count": 4, "priority": 0 }, "Escalated": { "statusCategoryKey": "indeterminate", "statusName": "Escalated", "count": 4, "priority": 0 }, "Waiting for support": { "statusCategoryKey": "indeterminate", "statusName": "Waiting for support", "count": 4, "priority": 0 }, "초안": { "statusCategoryKey": "indeterminate", "statusName": "초안", "count": 4, "priority": 0 }, "Implementing": { "statusCategoryKey": "indeterminate", "statusName": "Implementing", "count": 4, "priority": 0 }, "Awaiting approval": { "statusCategoryKey": "indeterminate", "statusName": "Awaiting approval", "count": 5, "priority": 0 }, "Pending": { "statusCategoryKey": "indeterminate", "statusName": "Pending", "count": 4, "priority": 0 } }, "done": { "완료": { "statusCategoryKey": "done", "statusName": "완료", "count": 12, "priority": 0 }, "Declined": { "statusCategoryKey": "done", "statusName": "Declined", "count": 4, "priority": 0 }, "Failed": { "statusCategoryKey": "done", "statusName": "Failed", "count": 4, "priority": 0 }, "게시됨": { "statusCategoryKey": "done", "statusName": "게시됨", "count": 4, "priority": 0 }, "해결됨": { "statusCategoryKey": "done", "statusName": "해결됨", "count": 4, "priority": 0 }, "취소": { "statusCategoryKey": "done", "statusName": "취소", "count": 4, "priority": 0 }, "종료": { "statusCategoryKey": "done", "statusName": "종료", "count": 4, "priority": 0 }, "완료됨": { "statusCategoryKey": "done", "statusName": "완료됨", "count": 4, "priority": 0 } } }
위 데이터를 List 처리하며 count 많은 순으로 priority 적용
[ { "statusCategoryKey": "new", "statusName": "해야 할 일", "count": 5, "priority": 1 }, { "statusCategoryKey": "new", "statusName": "다시 열림", "count": 4, "priority": 2 }, { "statusCategoryKey": "new", "statusName": "Waiting for approval", "count": 4, "priority": 3 }, { "statusCategoryKey": "new", "statusName": "검토", "count": 4, "priority": 4 }, { "statusCategoryKey": "new", "statusName": "미해결", "count": 4, "priority": 5 }, { "statusCategoryKey": "new", "statusName": "Under review", "count": 4, "priority": 6 }, { "statusCategoryKey": "new", "statusName": "Selected for Development", "count": 3, "priority": 7 }, { "statusCategoryKey": "new", "statusName": "Backlog", "count": 3, "priority": 8 }, { "statusCategoryKey": "new", "statusName": "12345", "count": 1, "priority": 9 }, { "statusCategoryKey": "new", "statusName": "리팩토링 중", "count": 1, "priority": 10 }, { "statusCategoryKey": "indeterminate", "statusName": "진행 중", "count": 12, "priority": 1 }, { "statusCategoryKey": "indeterminate", "statusName": "Authorize", "count": 5, "priority": 2 }, { "statusCategoryKey": "indeterminate", "statusName": "Awaiting implementation", "count": 5, "priority": 3 }, { "statusCategoryKey": "indeterminate", "statusName": "Awaiting approval", "count": 5, "priority": 4 }, { "statusCategoryKey": "indeterminate", "statusName": "Waiting for customer", "count": 4, "priority": 5 }, { "statusCategoryKey": "indeterminate", "statusName": "Under investigation", "count": 4, "priority": 6 }, { "statusCategoryKey": "indeterminate", "statusName": "Work in progress", "count": 4, "priority": 7 }, { "statusCategoryKey": "indeterminate", "statusName": "계획 중", "count": 4, "priority": 8 }, { "statusCategoryKey": "indeterminate", "statusName": "Escalated", "count": 4, "priority": 9 }, { "statusCategoryKey": "indeterminate", "statusName": "Waiting for support", "count": 4, "priority": 10 }, { "statusCategoryKey": "indeterminate", "statusName": "초안", "count": 4, "priority": 11 }, { "statusCategoryKey": "indeterminate", "statusName": "Implementing", "count": 4, "priority": 12 }, { "statusCategoryKey": "indeterminate", "statusName": "Pending", "count": 4, "priority": 13 }, { "statusCategoryKey": "indeterminate", "statusName": "Building", "count": 1, "priority": 14 }, { "statusCategoryKey": "indeterminate", "statusName": "Build Broken", "count": 1, "priority": 15 }, { "statusCategoryKey": "indeterminate", "statusName": "테스트1", "count": 1, "priority": 16 }, { "statusCategoryKey": "indeterminate", "statusName": "테스트2", "count": 1, "priority": 17 }, { "statusCategoryKey": "done", "statusName": "완료", "count": 12, "priority": 1 }, { "statusCategoryKey": "done", "statusName": "Declined", "count": 4, "priority": 2 }, { "statusCategoryKey": "done", "statusName": "Failed", "count": 4, "priority": 3 }, { "statusCategoryKey": "done", "statusName": "게시됨", "count": 4, "priority": 4 }, { "statusCategoryKey": "done", "statusName": "해결됨", "count": 4, "priority": 5 }, { "statusCategoryKey": "done", "statusName": "취소", "count": 4, "priority": 6 }, { "statusCategoryKey": "done", "statusName": "종료", "count": 4, "priority": 7 }, { "statusCategoryKey": "done", "statusName": "완료됨", "count": 4, "priority": 8 } ]
Actions