Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×"GET /rest/api/2/mypreferences?key=reportUserDateAndTimeFormat HTTP/1.0" 404
What is that and how can i resolve it?
Hi Waldemar,
Currently jira only allows changing a global date / time format by administrator for all users on the instance, so there is not an individualized user preference for this setting, are you instead looking for the users timezone settings?
The key value is pulling form the filed for the Constant Value of the PreferanceKeys java field values that can be found under the developer docs here:
Locate the "PreferanceKeys" in the left hand navigation pane to see the list of the constant final string values available for the endpoint, and I believe the value you are looking for would be the USER_TIMEZONE Constant Field which has a api value of "jira.user.timezone" so try a GET on:
<BASE_URL>/rest/api/2/mypreferences?key=jira.user.timezone
But please do note the mypreferences values per the defined keys will only return a 200OK response if a value has been expressly set previously, that is a value different from default, if set to the default in user preferences you will receive a 404.
EXE if your timezone is set to default and the default is set to America Chicago gmt-6:
the Field value is NULL per the system backend to inherit system default and the result will be a 404 not found as no value exists for the endpoint:
{
"errorMessages": [
"key not found: 'jira.user.timezone'"
],
"errors": {}
}
However if you set the user preference value manually to the same America/Chicago:
The API will return:
America/Chicago
Regards,
Earl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.