• Resolved marcguenther

    (@marcguenther)


    Hi,

    I have several recurring events, which I would like to change, but I would like to keep the history of past events intact.

    Apparently that is not possible by design.

    So as a workaround, I though I could maybe just detach all the past events from the recurring event, and then I can do the needed changes to the recurring event template (and set the start-date to now), without disturbing the past.

    Unfortunately, there seems to be no way to detach multiple events at once. I click on the “You can edit individual recurrences and disassociate them with this recurring event.” link, then there is Bulk Actions, but neither detach nor disassociate is available. The only thing is “Edit”, and that only allows to change the categories, not even the title is editable.

    I have 930 entries over 47 pages. Do I really have to edit all of these by hand, just because I want to change the end-date of my recurring events?

    I hope there is a better solution? If nothing else works, I would be fine with updating the DB directly via some clever SQL command.

    Marc

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    Hi,

    unfortunately, this is not yet available out of the box at the moment.

    Thread Starter marcguenther

    (@marcguenther)

    So, what do you propose I should do?

    To summarize:
    – It is not possible to set the end-date, without destroying everything
    – There is no option to only process future events, and leave past events alone
    – The workaround to detach everything is also not possible

    Can I use the Rest API to automate this? I found exactly zero information about using the API with this plugin.

    I have no idea on even how to communicate this problem to my non-technical folks over here. All they see is that our calendar is still showing wrong information. It is completely ridiculous, that it is not possible to terminate a recurring event.

    It seems the only solution is to scrap the current calendar and start over with a different plugin, which hopefully has either better support for recurring events, or has support for the Rest API, so I can provision all events from an external script.

    Thread Starter marcguenther

    (@marcguenther)

    I wrote a little TamperMonkey script, which adds a “Detach” option to the Bulk-actions for Recurring Events:

    https://gist.github.com/marc-guenther/39ad60345c641d752a04a65193766dee

    Now, when I need to make any changes to the dates of a recurring-event:
    – I use this to detach all events which are in the past,
    – then set the start date of the recurring event template to now,
    – and make any changes I need to make.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    Thanks for sharing, this will surely help other users as well. Marking this as resolved for now.

    Hi @marcguenther,
    The added function is also one thing I was looking for. where do I place your script for it to work? Somewhere in my child theme? Please advise. Thanks.

    Thread Starter marcguenther

    (@marcguenther)

    Hi,

    no, this is a purely browser based script. You have to install TamperMonkey (https://www.tampermonkey.net) plugin, and add the script.

    The script will then dynamically insert that button into the page, and simulate a user clicking all the real detach links.

    Marc

    I see, thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to mass-detach events from recurring-event?’ is closed to new replies.