Expose user date format
points out that knowing how the user likes their date formatted would be useful for creating a more consistent user experience.
We could do this a number of ways, e.g. a bespoke ACJS function to get that data, adding it to the user object returned by the existing ACJS function, or adding it to the data returned by the user preferences endpoint.
NB: just exposing the application-properties API is not an option as discussed here: https://ecosystem.atlassian.net/browse/AC-976
Thanks for bringing this problem to our attention in the comment to our recent post on CDAC and for providing more context to understand the workaround you need to apply. We’ve reviewed this problem and, given the current priorities, we haven’t prioritised this on our near term roadmap. I will watch the issue to learn about more apps affected by this, which would be helpful in future prioritization.
Product manager, Jira Cloud Ecosystem
Our app needs the date/time formats of Look and Feel and General configuration.
We can get the formats via DateTimeFormatUtils and AJS.Meta.get() in the server hosting. On the other hand, we cannot retrieve them in the cloud because /rest/api/2/application-properties is available for administrators only.
We discussed this matter with Jira cloud team at Connect week about 3 years ago. As a workaround, we're providing the formats configuration screen now, but it's the same as Look and Feel and General configuration, so customers are confusing about it.
It's better that we can get datetime format of Look and feel and Advanced Settings.
For example, JIRA.getDateTimeFormat(callback)...
We are planning to provide our own admin configuration as workaround. This workaround was suggested by Atlassian Jira Cloud team.