Hi,
I've just installed the plugin https://marketplace.atlassian.com/plugins/eu.kprod.jira.stattable-searchers, but I can not enable the searcher on my custom calculated fields type.
Is it possible to activate it? How?
Thanks!
Community moderators have prevented the ability to post new answers.
hello,
you must add your customfield to the list of supported field , here is the current list :
<valid-customfield-type package="com.atlassian.jira.plugin.system.customfieldtypes" key="textfield"/> <valid-customfield-type package="com.atlassian.jira.plugin.system.customfieldtypes" key="textarea"/> <valid-customfield-type package="com.atlassian.jira.plugin.system.customfieldtypes" key="readonlyfield"/> <valid-customfield-type package="com.onresolve.jira.groovy.groovyrunner" key="scripted-field"/>
here is a valide custom field definition as found in an atlassian-plugin.xml file
<customfield-type key="my-calculated-text-field" name="My Calculated Text Field" class="my.fields.impl.MyCalculatedCalculatedTextFieldTextField">
Here is the file you need to edit , you can modify the file directly in the jar with the information from your custom field.
here is a more compact exemple from line 25 to 38
let me know if you need more help
best regards,
Works perfectly fine, thank you :) but it would be even better if we could activate it for other field types without having to tweak your jar...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes, adding a cutom field type to an existing searcher require tweaking some file.
An alternate solution is to define the searcher in your plugin by adding a customfield-searcher definitition in your atlassian-plugin.xml and the required code dependencies ( or just copy the code)
best regards,
ps : you can also create a pull request if you want to see your custom field incorporated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
for disambiguation about 'free' please refer to the licence link at https://marketplace.atlassian.com/plugins/eu.kprod.jira.stattable-searchers/server/overview
kind regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
** my custom fields type extends com.atlassian.jira.issue.customfields.impl.CalculatedCFType<String, String>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.