Server and Local computer both have same correct locale and have Monday as first day of week.
Using JIRA 5.2.1
Australia locale appears set as Sunday first day.
To override, need to set JVM parameters on Jira service to language and country that is set for Monday e.g. Germany
-Duser.language=de
-Duser.country=DE
Make sure there are no spaces after the parameters.
Stress on that last line "Make sure there are no spaces after the parameters." ;)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To add to this, it depends on the Java locale that is configured - by default Java picks up the locale of the operating system, and subsequently JIRA picks that up. If we take a look at http://docs.oracle.com/javase/8/docs/api/java/time/temporal/WeekFields.html, it shows us:
I haven't been able to find a definitive list of which locales are ISO-8601 - it appears Germany is one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try endOfWeek(-5d) or endOfWeek(-6d)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I agree with Mizan. If you want the current week to be Mon-Sun, use "startOfWeek(1d), endOfWeek(1d)". If you want the previous week to be Mon-Sun, use "(startOfWeek(-6d), endOfWeek(-6d))", and so on. Easy!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Rebecca B. Weiss could you please suggest what should I write in query to view the list of Jira tasks which have been updated on just a Day ago but it should not show the results on monday if the ticket was updated on friday. That is i need to avoid weekends.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tracked here I guess: https://jira.atlassian.com/browse/JRA-36007
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please go through this ticket, this includes steps to change the start day of the week to Monday.
https://jira.atlassian.com/browse/JRA-9048
NOTE: Please test this activity on our test environment and make sure you backup the files before make any changes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My files are a bit different to what is referenced in JRA-9048, so perhaps i need to remove the '-1' ???
the macros.vm has $firstDay = $currentCalendar.firstDayOfWeek - 1
the datepicker2.jsp has firstDay : <%= Calendar.getInstance(locale).getFirstDayOfWeek()-1 %
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
All you need to do is -
this.firstDayOfWeek = typeof firstDayOfWeek == "number" ? firstDayOfWeek : Calendar._FD; // 0 for Sunday, 1 for Monday, etc.
this.firstDayOfWeek = 1;
Restart your JIRA and check whether you can see the start date ofy of the week set to Monday. This worked for me!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This has changed the issue due date picker so it now shows Mon-Sun correctly, but the startofweek() function is still set to Sunday
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hmm query for Due = StartOfWeek() still returns issue with due date on Sunday
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.