Expose user date format

Description

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

Environment

None

Activity

Show:
Katarzyna Derenda
August 7, 2020, 11:47 AM

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.

Katarzyna Derenda
Product manager, Jira Cloud Ecosystem

Takayuki Hirota (JP)
August 7, 2020, 7:56 AM

It would be helpful non-administrator users can get the date/time formats by public REST API or JavaScript API.

Background:

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.

Takayuki Hirota (JP)
December 6, 2016, 5:13 AM
Edited

It's better that we can get datetime format of Look and feel and Advanced Settings.
https://confluence.atlassian.com/adminjiracloud/configuring-the-look-and-feel-of-your-jira-applications-780861527.html
https://confluence.atlassian.com/adminjiracloud/configuring-jira-application-options-818578873.html

For example, JIRA.getDateTimeFormat(callback)...
https://developer.atlassian.com/static/connect/docs/latest/javascript/module-jira.html

We are planning to provide our own admin configuration as workaround. This workaround was suggested by Atlassian Jira Cloud team.

Assignee

Unassigned

Reporter

James Hazelwood