Loading...
;
+ if (error) return
+
Tags:
+ {props.task.source}
+
+ {props.task.priority != null &&
Priority: {props.task.priority}
}
+ {props.task.dueDate != null &&
Due Date: {props.task.dueDate}
}
+ {props.task.assignee != null &&
Assignee: {props.task.assignee}
}
+
+ );
+}
+
+export default TaskInfo
\ No newline at end of file
diff --git a/custom-tasklist-exporter-based/tasklist/client/src/components/Tasks/Tasks.js b/custom-tasklist-exporter-based/tasklist/client/src/components/Tasks/Tasks.js
new file mode 100644
index 00000000..8ef6f6ab
--- /dev/null
+++ b/custom-tasklist-exporter-based/tasklist/client/src/components/Tasks/Tasks.js
@@ -0,0 +1,28 @@
+import Task from "./Task";
+import { useQuery} from '@apollo/client';
+import GetFilteredTasks from "../../integration/GetFilteredTasks";
+import {useEffect} from "react";
+function Tasks() {
+
+ const { loading, error, data, startPolling } = useQuery(GetFilteredTasks,{
+ variables: {eventType: "CREATED", page: 0, size: 10}
+ });
+
+ useEffect(() => {
+ startPolling(500);
+ }, [startPolling]);
+
+ if (loading) return Loading...
;
+ if (error) return