Skip to content

Feature request: Cross-calendar filtering - In a view with two calendars is it possible to filter one event in cal0 with event in cal1? #123

@mvphilip

Description

@mvphilip

Hello, If I have a calendar with all day events like public holidays, is there any way to filter a second calendar event based on an attribute of the first? If a day is a "holiday", I'd like to not display events from the second calendar. I tried this in a sort:

    calendars: ["Holidays", "Workdays],
    sort: (a,event)=>{
      if ((a.calendarName.search("Holidays") > -1) &&
      (a.title.search("Day Off") > -1) && 
      a.endDate > b.endDate &&
      a.startDate < b.startDate) {
        b.class_name = "day_off"
        b.isCancelled = true
      }
    },

But this is clearly wrong. Would you have any suggestions?

thank you,

-mp

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions