Index: arms/js/analysisGantt.js =================================================================== diff -u -r0d6d7b5ff098add76e0c260b37bf60fce754e599 -rcf21fbf1a1faf7583fb5f8cf752baf88cb15c343 --- arms/js/analysisGantt.js (.../analysisGantt.js) (revision 0d6d7b5ff098add76e0c260b37bf60fce754e599) +++ arms/js/analysisGantt.js (.../analysisGantt.js) (revision cf21fbf1a1faf7583fb5f8cf752baf88cb15c343) @@ -1417,24 +1417,24 @@ acc.push({ id: `${cur.c_id}`, - assignee: cur.c_issue_assignee, + assignee: cur.c_req_manager, reporter: cur.c_issue_reporter, name: cur.c_title, start: getDate(cur.c_req_start_date), end: getDate(cur.c_req_end_date), - progress: 20, + progress: cur.c_req_plan_progress || 0, dependencies: cur.c_parentid === 2 ? "" : `${cur.c_parentid}`, priority: cur.state, custom_class: cur.c_issue_priority_name, // optional type: cur.c_type, etc: cur.c_etc, - tmm: "", - p_work: "", - t_period: "", - tpp: "", - result: "", - plan: "", - performance: "", + tmm: cur.c_req_total_resource, + p_work: cur.c_req_plan_resource, + t_period: cur.c_req_total_time, + tpp: cur.c_req_plan_time, + result: cur.c_req_output, + plan: `${cur.c_req_plan_progress || 0}%`, + performance: `${cur.c_req_plan_progress || 0}%`, level: cur.c_level, parentId: cur.c_parentid, position: cur.c_position @@ -1443,6 +1443,8 @@ return acc; }, []); + console.log(ganttTasks); + return ganttTasks; } @@ -1507,6 +1509,7 @@ }, on_progress_change: (task, progress) => { console.log(task, progress); + updateNode({ c_id: task.id, c_req_plan_progress: progress }); }, language: navigator.language?.split("-")[0] || navigator.userLanguage },