All work

Select view

Select search mode

 
50 of 187

As a user I want the global setting "Use ISO8601 standard in Date Picker" to define the first day of week

Description

Initial dev team notes

Dev notes: Looks like it is only available via rest API, but this means we will not be able to retrieve it for embedded (for filters), unless we make our proxy api. But maybe for initial version we could skip embedded;
Alternatively, we could just add own option and don’t rely on Jira.

there is a hidden Java API setting for Data Center, but it does not return a value.

Klicken Sie hier, um zu erweitern …

There is server api that returns proeprties:

http://localhost:2990/jira/rest/api/latest/application-properties
and it returns this when I enabled the feature:

Klicken Sie hier, um zu erweitern …

or can retrieve just one prop:

https://gr9-x-mysql.brizoit.com/rest/api/2/application-properties?key=jira.date.time.picker.use.iso8061

the same on cloud

https://brizoit-test.atlassian.net/rest/api/2/application-properties?key=jira.date.time.picker.use.iso8061

Details

Assignee

Reporter

App Type

Cloud
DC

Original estimate

Time tracking

10m logged

Fix versions

Priority

Created 3 days ago
Updated 2 days ago

Activity

Show:

Yuriy Harbuziuk2 days ago

Notes for DEVs:
This is how we can retrieve the setting on data center.

ApplicationProperties appProperties = ComponentAccessor.getApplicationProperties(); appProperties.getOption(APKeys.JIRA_DATE_TIME_PICKER_USE_ISO8601);

This is how we can retrieve the setting on Cloud:

https://brizoit-test.atlassian.net/rest/api/2/application-properties?key=jira.date.time.picker.use.iso8061

 

On Cloud, the API only works for admin users. So we must try to load this setting under APP permissions rather than under current user.

 

Approach:

load the setting on backend (Cloud and DC), and make it available by adding to page meta tags?

 

Problem:

our date picker doesn’t support setting start day of week directly. Only via locale, meaning “en-US” has Sunday as start of week, others have Monday. Maybe will find a way to hack current component, or maybe will find another date picker.