adds filtering by task status (completion date, incomplete, completion) adds filtering by task metadata (task name, labels, members, due date) adds sorting by task name, labels, members, and due date
51 lines
683 B
TypeScript
51 lines
683 B
TypeScript
import gql from 'graphql-tag';
|
|
|
|
const TASK_FRAGMENT = gql`
|
|
fragment TaskFields on Task {
|
|
id
|
|
name
|
|
description
|
|
dueDate
|
|
complete
|
|
completedAt
|
|
position
|
|
badges {
|
|
checklist {
|
|
complete
|
|
total
|
|
}
|
|
}
|
|
taskGroup {
|
|
id
|
|
name
|
|
position
|
|
}
|
|
labels {
|
|
id
|
|
assignedDate
|
|
projectLabel {
|
|
id
|
|
name
|
|
createdDate
|
|
labelColor {
|
|
id
|
|
colorHex
|
|
position
|
|
name
|
|
}
|
|
}
|
|
}
|
|
assigned {
|
|
id
|
|
fullName
|
|
profileIcon {
|
|
url
|
|
initials
|
|
bgColor
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export default TASK_FRAGMENT;
|