Add ability to search calendar events by subject/title

Open
#39,039 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
backend, search

Research direction

Start by locating the CalendarEvent model and CalendarService, the entry points named in the issue, and inspect how existing event lookups are implemented. Done means exposing a backward-compatible subject/title search with case-insensitive partial matching, while confirming the performance and indexing approach.

Written by the indexing model from the issue text.

Description

type: feature
Problem

Currently, calendar events are primarily accessed using internal identifiers (eventId) or date-based queries. However, there is no direct way to search events by their subject/title.

From a user perspective, event IDs are not meaningful, and users typically remember events by their names (e.g., meeting titles, subjects) rather than internal database identifiers.

This creates a usability limitation when users want to quickly locate a specific event.

Proposed Improvement

Introduce support for searching calendar events by subject/title.

At the service level, this could be implemented by:

Adding a model-layer query method (e.g., subject-based lookup)

Exposing a CalendarService method for text-based search

Supporting case-insensitive partial matches

Example use cases:

Searching for meetings by name

Quickly filtering large event lists

Enabling future UI search functionality

Why this is valuable

Improves overall calendar usability

Aligns with expected calendar/search behaviour

Removes reliance on internal event IDs

Reusable across UI, REST APIs, and integrations

Backward compatible enhancement

Possible Implementation Direction

A potential approach:

Add a subject-based query method in the CalendarEvent model

Use regex / indexed search with case-insensitive matching

Expose a search method via CalendarService

Performance considerations such as indexing on the subject field may also be relevant.

Additional Context

I’d be happy to work on the implementation if this enhancement is considered useful.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RocketChat/Rocket.Chat

All issues in RocketChat/Rocket.Chat

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.