Logic error in tip due date documentation.

https://blog.jetbrains.com/youtrack/2017/09/5-tips-for-tracking-issues-in-youtrack/

TIP no.4 Due Date in advance (2 days before)

return ctx.issue.fields.DueDate < Date.now() – 2 * 24 * 60 * 60 * 1000;

This does not work(no notification 2 days before) ,

I guess there is logic mistake and there should be plus not minus (Date.now() + 2 * 24 * 60 * 60 * 1000; )

Any comment?

3 comments
Comment actions Permalink
Official comment

Hello,

Thank you for pointing this out! This is definitely a mistake, we will fix it shortly.  

Comment actions Permalink

Thank you for confirmation.

Where I can post feature request?

Please add more flexible options for this workflow, due date is very important and it should have various options by default without additional coding.

For example would be nice to have possibility to notify X times on due date, by default every time, but if user want one or 3 times this should be also possible instead of constant.

 

0
Comment actions Permalink

Please feel free to add your feature requests here: https://youtrack.jetbrains.com/issues/JT

We supply various default workflows - there is one about Due Date, so you don't need to code (or need to perform just some minor corrections). Please refer to the link: https://www.jetbrains.com/help/youtrack/standalone/Workflow-Due-Date.html

0

Please sign in to leave a comment.