I have shared some time ago a small script for a universal date picker with calendar weeks displayed. Now in Jira and Confluence the date format is fixed to mm/dd/yyyy. Moreover, Confluence has a specific way of formatting dates. So I have adapted the tool to better integrate with Jira and Confluence.
I share here the result.
Problem description
Date Picker in Confluence or Jira does not display the Calendar week in the Calendar.
Implementation
The implementation can be found in the Atlasy Library-> the functions Atlasy_DatePicker and Atlasy_CurrentDate
Usage
Configuration
You need to assign a hotkey to the functions to use. The hotkey is configurable.
Go to System Tray Icon (click): Settings -> Hotkeys -> DatePicker or CurrentDate
In the PowerTools.ini file, section [General] Key: DateFormat, you can also specify the date format you want to use:
[General]
# Use by DatePicker feature. Leave empty to use system date format
DateFormat = yyyy-MM-dd
It follows the documentation here: https://www.autohotkey.com/docs/v1/lib/FormatTime.htm
Confluence Usage
If you are working in a Confluence or Jira Browser Window the date format will be automatically set to fit the Atlassian format of "M/dd/yyyy". (Surprisingly the date picker in Atlassian does not fit to the user/ OS Date format settings but is fixed to this format.)
Jira Workaround
In a Jira issue screen, you can not open the Atlasy Date Picker from a date field because the focus to the field is then lost when the Gui date picker is opened. Therefore the selected date (with the requested format) will be copied to the clipboard, so that you can paste it in the date field.
No comments:
Post a Comment