Accessing Jira Agile Board Configuration throws Exception: Uncaught TypeError: Cannot read property 'regionKey' of undefined

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Problem

Accessing Jira Agile Board Configuration throws

1 Exception: Uncaught TypeError: Cannot read property 'regionKey' of undefined

Diagnosis

The stack trace shows

1 2 3 4 5 TypeError: Cannot read property 'regionKey' of undefined at Object.GH.WorkingDaysConfig.getRegionKeyForTimeZoneId at Object.GH.WorkingDaysConfig.renderTimeZoneConfig at Object.GH.WorkingDaysConfig.renderTab at Object.GH.WorkingDaysConfig.init

Cause

This is related to Working Days board configuration. In table AO_60DB71_WORKINGDAYS , you can find that the affected board has timezone set to the timezone that does not exist in Jira by default, for example Africa/Addis_Ababa

Solution

Resolution

Fixing via REST API

  • REST endpoint:

    1 /rest/greenhopper/1.0/rapidviewconfig/workingdays/timezone
  • With example data input:

    1 {"rapidViewId":2,"timeZoneId":"Europe/Brussels"}
  • Example using curl:

  • 1 curl -D- -u admin:admin --data '{"rapidViewId":2,"timeZoneId":"Europe/Brussels"}' -X PUT -H "Content-Type: application/json" http://localhost:8080/rest/greenhopper/1.0/rapidviewconfig/workingdays/timezone

Fixing via Database SQL

  1. Shutdown Jira

  2. Identify the non default timezone that have been configured here

    1 select * from "AO_60DB71_WORKINGDAYS";
  3. Alternatively, verify the timezone configured for the affected board exists in Jira by identifying the board id

    1 select "TIMEZONE" from "AO_60DB71_WORKINGDAYS" where "RAPID_VIEW_ID" = <board_id>;

    board_id can be found in the browser URL. Eg: http://localhost:8080/secure/RapidView.jspa?rapidView=4038

  4. Change the timezone to a default timezone using the following query. Replace xxxx accordingly with the non-default timezone

    1 UPDATE "AO_60DB71_WORKINGDAYS" SET "TIMEZONE" = 'defaultTimeZoneId' WHERE "TIMEZONE" = 'xxxxxx';
  5. Restart Jira

Remember to generate backup before modifying anything in the database.

Updated on April 16, 2025

Still need help?

The Atlassian Community is here for you.