JIRA 4.3 : Automatically Populate Timezone from a Created Issue
This page last changed on Oct 22, 2010 by jlargman.
Atlassian Support likes to use customers' timezones to respond more effectively to support tickets. We extract timezone information automatically, so customers don't need to enter it manually. To do that, we add JavaScript to our custom field description: Your timezone. The value is set automatically from your browser, so please only modify if it's incorrect. <br> <b><a href="http://www.worldtimezone.com/" target="timezone">World Timezones</a></b> <script language="JavaScript"> <!-- function setCustomerTimezone() { tzlist = document.getElementById("customfield_10421"); if (tzlist) { if (/CreateIssueDetails.jspa/.test(tzlist.form.action)) { // Value has not yet been set if (tzlist.value == -1) { offset = new Date().getTimezoneOffset() / 60; // hours from GMT if (offset <= 0) { tzlist.value="GMT+"+(-offset); } else { tzlist.value = "GMT-"+offset; } // } } } } window.onload = setCustomerTimezone; //--> </script> Related PagesSetting Priority field value based on customfield value |
![]() |
Document generated by Confluence on Mar 27, 2011 18:51 |