Create Custom Field Searcher Template

Hello all, i've two questions :

 

Is it possible to create a custom field searcher template ?

 

Is it possible to create an email template ?

3 answers

1 accepted

Email template it's simple. They stored in folder - ../atlassian-jira/WEB-INF/classes/templates/email/
you can change it. 

For Custom field search look this - https://developer.atlassian.com/jiradev/jira-platform/building-jira-add-ons/jira-plugins2-overview/jira-plugin-module-types/custom-field-plugin-module/how-to-add-searching-to-a-custom-field 

Thanks, what is the content to put into the file to change the text in the mail ?

There are 2 folders for html and text format files. It depends on the settings of which file to use.
Template files is velocity template (https://developer.atlassian.com/jiradev/jira-platform/jira-architecture/jira-templates-and-jsps/velocity-context-for-email-templates)
For example notify about closed issue - file ../email/text/issueclosed.vm

#disable_html_escaping()
#parse("templates/email/includes/issueplugins.vm")
     [ ${baseurl}/browse/${issue.getKey()}?page=${tabpanel-all} ]
#headerTitleText($i18n.getText("template.text.issue.closed", $remoteUser.displayName, $issue.key), $remoteUser.displayName)
#changes([])
#comment()
#visibilityText()
#parse("templates/email/text/includes/issuesummary.vm")
#parse("templates/email/text/includes/footer.vm")

 

 

Ok thank you Anatoly ! smile

Is anyone know ?

0 vote

You can write your own searchers, containing their own search templates, yes.  They're done as add-ons.  I've only ever written ones that search my own custom field types though, so I'm not sure if it's possible to write a searcher and add it to an existing field type.  I have a feeling that if you wanted your searcher to be used on a standard custom field (e.g. my-lovely-searcher as an option when setting up a standard multi-select list field), you have to hack the code for the field to tell it a new searcher is available.

Ok thanks, and for the mails ?

See Anatoly's answer.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Posted yesterday in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

40 views 0 5
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