Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the default Search Template for my custom field type to None

Emre Toptancı _OBSS_
Atlassian Partner
April 14, 2021

I am developing a custom field type for Jira 8.x.

My custom field will support a earch Template but I want it to be non-searchable by default. The admin can choose to Edit the custom field and set a Search Template but I want the default Search Template to be None.

How can I do that?

I've checked this document about it but doesn't point to a way

1 answer

0 votes
Alexander Pappert
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 14, 2021

I don't think that you can choose "none" as search template.

if you have some addons, you can choose between different templates, but if not, you have to select the jira standard template. And the template only defines that you can have different JQL options for the search.

if you want to hide the field to be "not searchable" via JQL, this might be possible with some addons that hide issue fields.

Emre Toptancı _OBSS_
Atlassian Partner
April 14, 2021

Hello Alexander,

The admin can set the Search Template to None and prevent searches. That is no problem.

What I want is to make that None value, default. When the admin creates a new custom field of my type, the selected Search Template should be None by default.

Alexander Pappert
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 14, 2021

ok, now I understand

unfortunately, I cannot help with an automated solution (maybe there is some documantation on how to create own custom fields and set their defaults).

you can tell it your admin an hope he selects the template manually

Suggest an answer

Log in or Sign up to answer