taskwarrior icon indicating copy to clipboard operation
taskwarrior copied to clipboard

[TW-1803] Recurance on last Friday before particular day of month

Open taskwarrior opened this issue 7 years ago • 3 comments

Tyler on 2016-05-10T22:52:42Z says:

Include the ability to use eoww or eom style phrasing on recurrence. Allow for last working day of the month either on a particular dom or weekday before this day to be a recurring date.

Use case of this would be a time sheet is due the 15th of the month for payday. This payday occurs on a variable DOM but not necessarily the 15th as it will be the 13th if the 15th happens to be a Sunday this particular month.

This happens every month and it would be nice to use this in taskwarrior instead of keeping this in outlook. (And I mean the email I get when I forget to do my timesheet invariably when it happens to fall on the 13th or something)

I am not even sure how the syntax for this might work but recur on the 15th but have an argument that allows for eoww then I can have it show me the morning it is due or the evening before with the waiting field

https://answers.tasktools.org/questions/4915950/is-it-possible-to-have-a-task-recur-on-the-last-working-day-before-the-15th-every-month

taskwarrior avatar Feb 14 '18 18:02 taskwarrior

Migrated metadata:

Created: 2016-05-10T22:52:42Z
Modified: 2017-01-16T21:09:14Z

taskwarrior avatar Feb 14 '18 18:02 taskwarrior

Tyler on 2016-05-10T23:03:58Z says:

It is almost custom enough that it might be nice to have conditional logic built into the taskrc file so that aliases can be made or something

{code}

  1. pseudo-code IF TASK.DOM==15 { IF TASK.DOW==SAT { TASK.RECUR.DOM=TASK.DOM-1 } IF TASK.DOW==SUN { TASK.RECUR.DOM=TASK.DOM-2 } } {code}

or something

taskwarrior avatar Feb 14 '18 18:02 taskwarrior

If this gets accepted it should also be added to the Recurrence RFC under the Exotic Dates Proposal. For example: workday of the 15th (meaning either the 15th or the last work-day before it if it's a weekend) or last workday of eom (meaning the work-day before the eom, perhaps this example should be specified as workday of (eom-1day)).

This should also be aware of changes due to the Work Week Support RFC.

MarcelloNicoletti avatar Feb 25 '19 23:02 MarcelloNicoletti