The templates are not displayed after JIRA 7.1.4 upgrade

We have a few saved templates in JIRA. But these template is no longer shown in the subtask template page which is accessible from the project admin page. The template page is now a blank page. These previously saved templates cannot be used in JIRA anymore. If I create a new template in a project which has no template before, it still works.

We are on JIRA 7.1.4 and Quick Subtask plugin 4.3.0.

Here is the error in the log.

2016-07-13 13:01:30,585 ajp-nio-8009-exec-123 ERROR Lai_Dai 781x3762084x4 16jjex /rest/subtasks/1.0/repository/project/TSBIR [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: java.util.HashSet cannot be cast to java.util.List java.lang.ClassCastException: java.util.HashSet cannot be cast to java.util.List at com.hascode.plugin.quick_subtasks.dao.SubtasksTemplateProviderImpl.deserializeTemplates( at com.hascode.plugin.quick_subtasks.dao.SubtasksTemplateProviderImpl.templatesByProject( at com.hascode.plugin.quick_subtasks.dao.SubtasksTemplateProviderImpl.templatesForProject( at at ... 2 filtered at java.lang.reflect.Method.invoke( ... 19 filtered at$JerseyOsgiServletContainer.doFilter( ... 1 filtered at ... 91 filtered at ... 16 filtered at ... 22 filtered at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.lambda$invokeFilterChain$0( at com.atlassian.servicedesk.internal.util.scala.ScalaJavaInterOp$1.apply( at com.atlassian.servicedesk.internal.utils.context.CustomerContextUtil$.outOfCustomerContext(CustomerContextUtil.scala:48) at com.atlassian.servicedesk.internal.utils.context.CustomerContextUtil.outOfCustomerContext(CustomerContextUtil.scala) at com.atlassian.servicedesk.internal.utils.context.CustomerContextServiceImpl.outOfCustomerContext( at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.outOfCustomerContext( at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilterImpl( at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilter( ... 54 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at org.apache.tomcat.util.threads.TaskThread$ at

Please advise how to fix this issue and recover previously saved templates


2 answers

1 accepted

0 votes
Accepted answer

From which JIRA version did you upgrade to JIRA 7.1.4?

Any ETA on the fix?

Which was your JIRA version and the plugin's version before the update to JIRA 7.1.4 and plugin 4.3.0?

JIRA 6.3.8

Plugin 3.4.0

This is a critical issue for my users now as new templates cannot be created and saved if templates were created before. Please provide the solution asap. Thanks!

It seems as if the database migration converting from the old to the new storage format has not been applied to your JIRA instance. I'l try to provide you with a temporary patch that should convert all templates from the old to the new format - otherwise you could remove all existing templates directly from the database.

Hi Micha,

When can you provide me the patch? Please provide the ETA.

I have created an issue in the project's issue tracker and I have provided an individual upgrade script for you there with detailed instructions how to proceed. Please feel free to switch to this channel for further communication:

Thanks Micha for the patch.

I will test the patch in staging first before applying it in my prod.

BTW, do you have a database query to find the projects against which have sub-task templates created?


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Feb 07, 2019 in Marketplace Apps

A Timeless Love Story

It started as any story starts, on a normal, rainy day.   Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...

441 views 8 26
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you