Team Calendar for Confluence で Jira カレンダーからイベントを読み込めない
問題
Jira events are not appearing in Team Calendars, even though the Application Link is fine and JIRA issue macros work fine on Confluence pages.
症状
The following errors can be seen in the Confluence logs:
2019-11-25 12:25:31,702 ERROR [https-jsse-nio-8091-exec-5] [extra.calendar3.calendarstore.CalendarDataStoreCachingDecorator] load Could not load calendar content from cache key
...
Caused by: com.atlassian.confluence.extra.calendar3.calendarstore.JiraAccessor$JiraResponseException: The response from project = "PROJKEY" didn't make sense
Unable to load events of <user> (a82c0c96-0a43-4f90-a519-f950120e40a0): Unable to read response from https://<domain name>/rest/ical/1.0/ical/search/filter/events.ics?_=1351680360427&searchFilterId=10102&dateFieldName=versiondue&dateFieldName=duedate&dateFieldName=sprint&includeFixVersions=true as iCalendar text
原因
This error may due to some causes:
- JIRA could be down
- User may not have access to the saved filter. There is an ongoing improvement request about this: TEAMCAL-966 - Getting issue details... STATUS
- The JQL may be pointing to projects or fields that no longer exist
- Network timeout issues
- JIRA is set to use a "GMT-X" timezone format using the -Duser.timezone startup parameter. This issue is being tracked here: TEAMCAL-1210 - Getting issue details... STATUS
- If you're using JIRA 4.4 and Team Calendars for Confluence JIRA Integration version 1.0.11, you may hitting this bug: https://ecosystem.atlassian.net/browse/JICAL-12
ソリューション
Based on the four identified causes above, the corresponding suggested resolutions are as below:
- Troubleshoot: Check if the JIRA service is running
Fix: Bring JIRA back up - Troubleshoot: Check the permissions on the JIRA saved filter (Get the owner of the JIRA saved filter to share it, if yet to be shared)
Fix: Ensure the viewer has permissions - Troubleshoot: Run the JQL in the issue navigator and ensure it is a valid JQL query
Fix: Edit the JIRA calendar and re-apply the new JQL query - Troubleshoot: An administrator would have to connect to the Confluence server and test the connection between it and the JIRA server
Troubleshoot: Look for the following error in the JIRA logs (
<jira_home>/log/atlassian-jira.log
):2011-06-10 15:01:45,759 TP-Processor2 ERROR couri 901x2x1 1yk5fq8 10.2.144.11 /rest/ical/1.0/ical/project/CSP/events.ics [jira.extra.icalfeed.IcalendarResource] Unable to export issues to iCalendar java.lang.NullPointerException at com.atlassian.jira.extra.icalfeed.IcalendarResource.toIcalendar(IcalendarResource.java:186) at com.atlassian.jira.extra.icalfeed.IcalendarResource.search(IcalendarResource.java:178) at com.atlassian.jira.extra.icalfeed.IcalendarResource.getIcalendarByProject(IcalendarResource.java:133) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java:206) at...
Fix: Set the Java system property user.timezone to use a format such as "US/Pacific" or "America/New York" (e.g. -Duser.timezone=US/Pacific) in JIRA. For details to set system properties in JIRA, please refer to this documentation - Setting Properties and Options on Startup- Upgrade to JIRA 5.2.x or use Team Calendars for Confluence JIRA Integration version 1.0.9 instead