What are the available searcher types when creating a number field using jelly scripts?

I'm trying to create a number custom field using jelly scripts. I can't find a reference to the available searcher types. I've tried "numbersearcher" and "none" and both return the error. Is this documented anywhere?

{quote}

Exception: org.apache.commons.jelly.JellyTagException: null:7:0: The following problems were found: Invalid field type specified. searcher: Unknown searcher chosen
{quote}

This is my code:

{code}

<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.enterprise.JiraTagLib">
<jira:CreateCustomField fieldType="number"
fieldName="EW ITEM No."
searcher="none"
description=""
fieldScope="project"
projectKey="SAMPLE">
</jira:CreateCustomField>

</JiraJelly>

{code}

What searchers are available? I'll need to do this with date fields as well.

thanks.

1 answer

1 accepted

Hi Greg.

"number" isn't a valid custom field type. I think you might mean "select"; if so, then the searcher you want is "multiselectsearcher".

Do you have access to the JIRA source code? You'll find all of the possible custom field types and custom searchers enumerated in a file called system-customfieldtypes-plugin.xml, which may be found in the src/main/resources/ directory of the jira-core project. In that file, the <valid-customfield-type> tags tell you which searchers are associated with which custom field types.

Thanks,

While I wait for the source code to download, what I'm trying to do is create a field in the same way as add field -> Number Field. Won't using "select" give me a text select box?

Oh, I see. Yes, in that case, the type you want is "float", and the searcher is either "exactnumber" or "numberrange".

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,760 views 11 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot