Search by task ID (with list identifier)

Hello,

is it possible to search for a task by its ID (with the list identifier)?

Let’s say we have a list called “Foo” with an identifier “FOO” and it has a task “Some task”, which has a task id “FOO-1” (e.g. in a kanban view). Now, is it possible to search for “FOO-1”?

Thanks a lot :slight_smile:

Right now that’s not possible.

Do you think it would be a great newcomer task?

I’d like to participate in the development and around xmas I might actually find the time to do it :slight_smile:.

More so, this feature would help me easily find tasks from commit messages (I name commits e.g. “[FOO-1] Initial commit”)

I think this could work as a newcomer task. It’s not easy-peasy but it’s a small enough area and not that complex.

Picking this up. Proposal: a search that is exactly a task identifier like PROJ-12 (case-insensitive) also matches that project’s task 12. Text matches stay as they are, and results are still limited to projects the user can see. It’s the search counterpart to feat: add GET /tasks/by-ref/{ref} to resolve full task identifiers like TAL-10 · Issue #2694 · go-vikunja/vikunja · GitHub and builds on Allow project identifier in task by-index endpoint by kolaente · Pull Request #2776 · go-vikunja/vikunja · GitHub.

Ctrl+K’s +Project #12 comes close, but it matches the project by its exact title, silently drops the filter when the title doesn’t match, and isn’t available through the API.

I have a PR ready if this sounds right.

The PR is up: feat(tasks): find a task by searching for its identifier by janssenjones · Pull Request #4264 · go-vikunja/vikunja · GitHub

Searching for an exact identifier like PROJ-12 (case-insensitive) now also finds task 12 in project PROJ. Text search and #12 work the same as before, and it never shows tasks from projects you can’t access. It also works in the Ctrl+K quick actions without any frontend changes.