Workflow due date questions

I'm setting up some new workflow rules for the due dates. The first thing I would like to do is be able to tell if the date selected is a weekend or weekday so I can adjust it if the selected date falls on a weekend. I'm just not sure of what function would return the day of the week to me. Also I would like to setup a list of days that my company considers holidays and check the selected date against that list to see if I need to adjust the date.

4 comments
Comment actions Permalink

Hi Chris,

unfortunately there no nice way to manage weekends and holidays. Please vote for http://youtrack.jetbrains.com/issue/JT-13373

But there is workaround - you can add integer field, say 'Day of week' to keep day of week and increase it by schedule rule at 00:00:00 every day.

'Day of week' % 7 == 5 || 'Day of week' % 7 == 6 says about weekands, 'Day of week' == "_holidayNumber_" denotes holiday.

0
Comment actions Permalink

Ok I get the holiday part but I guess I'm still a little fuzzy on the weekend part. Am I right in assuming that you are suggesting to attache a dayofweek field to each issue and adjust it every night?

0
Comment actions Permalink

Untill JT-12689 isn't implemented - yes, you need attach field 'Day of week' to entire project, e.g. to each issue.

If you are going to do it, I recommend you make this field private or even create a separate project (and attach field 'Day of week' there) to manage such technical information.

0
Comment actions Permalink

Thanks that's what I thought. I'll keep a look out for that issue to be completed too.

0

Please sign in to leave a comment.