Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to use your own custom fields in desktop gadget

I have an issue statistics gadget


It works great with built-in types of custom field, but i need to add my own custom fields here. I implemented customfield Stattable and my fields appeared in dropdown list:


But when I choose this custom field, it drops an error



Failed to get the project configured for this gadget. Confirm that it is still valid in the problem navigator.

In Logs i get this error

https-openssl-nio-443-exec-16 ERROR RSimashev 897x5855x1 14dil9d /rest/gadget/1.0/stats/generate [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: null
at sun.misc.FloatingDecimal.readJavaFormatString(
at sun.misc.FloatingDecimal.parseDouble(
at java.lang.Double.parseDouble(
at java.lang.Double.<init>(
at com.atlassian.jira.issue.statistics.NumericFieldStatisticsMapper.getValueFromLuceneField(
at com.atlassian.jira.web.bean.StatisticAccessorBean.getWrapper(
at com.atlassian.jira.gadgets.system.StatsResource.getData(
... 2 filtered
at java.lang.reflect.Method.invoke(
... 19 filtered
... 1 filtered
... 32 filtered
at com.atlassian.servicedesk.internal.web.ExternalCustomerLockoutFilter.doFilter(
... 8 filtered
... 4 filtered
... 3 filtered
at com.atlassian.diagnostics.internal.platform.monitor.http.HttpRequestMonitoringFilter.doFilter(
... 8 filtered
at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(
... 43 filtered
at com.atlassian.ratelimiting.internal.filter.RateLimitFilter.doFilter(
... 21 filtered
... 1 filtered
... 16 filtered
... 19 filtered
at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(
... 5 filtered
at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.lambda$invokeFilterChain$0(
at com.atlassian.servicedesk.internal.api.util.context.ReentrantThreadLocalBasedCodeContext.rteInvoke(
at com.atlassian.servicedesk.internal.api.util.context.ReentrantThreadLocalBasedCodeContext.runOutOfContext(
at com.atlassian.servicedesk.internal.utils.context.CustomerContextServiceImpl.runOutOfCustomerContext(
at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.outOfCustomerContext(
at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilterImpl(
at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilter(
... 9 filtered
at com.atlassian.jwt.internal.servlet.JwtAuthFilter.doFilter(
... 3 filtered
at com.atlassian.ratelimiting.internal.filter.RateLimitPreAuthFilter.doFilter(
... 3 filtered
at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(
... 4 filtered
at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(
... 26 filtered
at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(
... 26 filtered
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$
at org.apache.tomcat.util.threads.TaskThread$

1 answer

Hi @Роман Симашев ,

what type of custom field is it? And has a project configuration been set up on this custom field that it is not for the specified project?


Regards, Marco

Here is a custom field initialization

public class AgreementCF extends AbstractSingleFieldType<Issue> implements RestAwareCustomFieldType, RestCustomFieldTypeOperations {

And it's searcher

public class AgreementCFSearcher extends AbstractInitializationCustomFieldSearcher implements CustomFieldSearcher, NaturallyOrderedCustomFieldSearcher

 And I do not understand what do you mean

"project configuration been set up on this custom field that it is not for the specified project"

Suggest an answer

Log in or Sign up to answer

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you