[TIME-257] Holiday configuration

Issue #257 resolved
Andriy Zhdanov created an issue

Would it be possible to configure timesheet plugin so that the gadget shows localized national holidays (eg. in USA = July 4th and so on, Norway = May 17th and so on) ? I would like for it to show as saturday and sunday are now - cells with red background.

It would suffice to let the user add this as a comma separated list of dates if it makes it easier and quicker to implement. Optimally it would be a global configuration GUI (not each users gadget configuration) and a predefined list of supported locales - configuratble so you can add your own - but I expect this would be a time consuming request. I hope you will consider my request as I think it would be a great addition to an already great plugin.


See https://answers.atlassian.com/questions/55513/holiday-configuration

By azhdanov/Andrew Zhdanov on Wed, 30 May 2012 13:53:30 -0700

Comments (10)

  1. Andriy Zhdanov reporter

    It's now possible to specify holidays in jira-config.properties, basing on relevant government site, e.g.

    jira.timesheet.plugin.holidays=\ 1/May/2012 - Labor Day,\ 9/May/2012 - Victory Day

    Or just:

    jira.timesheet.plugin.holidays=1/May/2012, 9/May/2012

    Dates must be specified in jira default locale and long date format, which are usually en_US and dd/MMM/YYYY.

    Should be available in 2.3.5 soon.

    Things to consider in future:
    0) Holidays for user viewing the report or holidays for user reported worked log?
    1) Holidays calendar in java - http://www.javaworld.com/javaworld/javatips/jw-javatip44.html
    2) holidaywebservice.com - for .net, or www.bank-holidays.com - no service api?
    3) http://www.codeproject.com/Articles/18261/Working-with-date-time-patterns
    4) http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/scheduling/support/CronSequenceGenerator.html

    Committed revision 168380

    By azhdanov on Thu, 31 May 2012 15:13:21 -0700

  2. Gary Li

    Hi, Andriy,

    I try to add holidays in my JIRA, and then I restart the JIRA. but the timesheet didn't show the holiday info.

    My version is : 2.3.15.

    I saw you mentioned that "Dates must be specified in jira default locale and long date format, which are usually en_US and dd/MMM/YYYY."

    I'm not sure my cofig is correct or not, so I attached the config:

    jira.timesheet.plugin.holidays=1/May/2012, 9/May/2013, 29/Mar/2013, 28/Mar/13

    User Locale: English (United States)

    JIRA Date/Time formats:

    Complete Date/Time Format: dd/MMM/yy h:mm a Day/Month/Year Format: dd/MMM/yy

    Please help to take a look, thanks.

  3. Andriy Zhdanov reporter


    Your configuration looks correct. It should display holidays as day offs, similarly to weekends. Could you please try enable logging for plugin, and see messages in jira.log. Edit <JIRA_HOME>/WEB-INF/classes/log4j.properties, add the following at the very bottom and restart JIRA:

    log4j.logger.com.fdu.jira.util = DEBUG, console, filelog log4j.additivity.com.fdu.jira.plugin = false

    Feel free to send it by email.

    Thank you.

  4. Gary Li

    Hi Andriy,

    Thanks for your reply. You are correct, my configuration is OK, After turn on the log, I found the root cause is the properties file is not config properly in system level.

    It works now. thanks again.

  5. Adrian Fita

    Hello. Is it possible to add localised legal holidays based on the User's location? I'm guessing that currently the holidays are defined for only 1 country, but this doesn't work right if users are from multiple countries.

  6. Andriy Zhdanov reporter

    Hi Adrian,

    Unfortunately it's not possible. Support for holidays is very limited as you can see. But I plan to improve, and will keep in mind the case of multiple locations. Thank you for bringing this up!

  7. Log in to comment