diff --git a/frontend/src/components/project/partials/FilterInputDocs.vue b/frontend/src/components/project/partials/FilterInputDocs.vue index dd42d8364..01d09e212 100644 --- a/frontend/src/components/project/partials/FilterInputDocs.vue +++ b/frontend/src/components/project/partials/FilterInputDocs.vue @@ -31,6 +31,8 @@ const showDocs = ref(false)
labels: {{ $t('filters.query.help.fields.labels') }}project: {{ $t('filters.query.help.fields.project') }}reminders: {{ $t('filters.query.help.fields.reminders') }}created: {{ $t('filters.query.help.fields.created') }}updated: {{ $t('filters.query.help.fields.updated') }}{{ $t('filters.query.help.canUseDatemath') }}
{{ $t('filters.query.help.operators.intro') }}
diff --git a/frontend/src/helpers/filters.ts b/frontend/src/helpers/filters.ts index 4ef4043c2..6d7d14abc 100644 --- a/frontend/src/helpers/filters.ts +++ b/frontend/src/helpers/filters.ts @@ -6,6 +6,8 @@ export const DATE_FIELDS = [ 'endDate', 'doneAt', 'reminders', + 'created', + 'updated', ] export const ASSIGNEE_FIELDS = [ diff --git a/frontend/src/i18n/lang/en.json b/frontend/src/i18n/lang/en.json index e3c9ce94b..f50430680 100644 --- a/frontend/src/i18n/lang/en.json +++ b/frontend/src/i18n/lang/en.json @@ -459,7 +459,9 @@ "assignees": "The assignees of the task", "labels": "The labels associated with the task", "project": "The project the task belongs to (only available for saved filters, not on a project level)", - "reminders": "The reminders of the task as a date field, will return all tasks with at least one reminder matching the query" + "reminders": "The reminders of the task as a date field, will return all tasks with at least one reminder matching the query", + "created": "The time and date when the task was created", + "updated": "The time and date when the task was last changed" }, "operators": { "intro": "The available operators for filtering include:", diff --git a/pkg/models/tasks.go b/pkg/models/tasks.go index 629048ed0..b34a06c28 100644 --- a/pkg/models/tasks.go +++ b/pkg/models/tasks.go @@ -212,7 +212,7 @@ func (t *Task) ReadAll(_ *xorm.Session, _ web.Auth, _ string, _ int, _ int) (res } func getFilterCond(f *taskFilter, includeNulls bool) (cond builder.Cond, err error) { - field := "`" + f.field + "`" + field := "tasks.`" + f.field + "`" if f.field == taskPropertyBucketID { field = "task_buckets.`bucket_id`" }