Jira E-Mail template - customfield options

Hi there!

is there a way to get all options of a customfield into a mail-template?

greetzz

kerstin

2 answers

1 accepted

0 votes

Well, you can do this in the mail template I guess. Everything needed is in context. Breaking it into pieces,

1. Get the custom field

2. Get the field config

http://docs.atlassian.com/jira/latest/com/atlassian/jira/issue/fields/CustomField.html#getRelevantConfig%28com.atlassian.jira.issue.Issue%29

3. get options using the field config

http://docs.atlassian.com/jira/latest/com/atlassian/jira/issue/fields/CustomField.html#getOptions%28java.lang.String,%20com.atlassian.jira.issue.fields.config.FieldConfig,%20com.atlassian.jira.issue.context.JiraContextNode%29

Key and contextNode can be null.

4. Get Options from the Options object!

THANK YOU SOOOO MUCH!! it works!!!

greezz

kerstin

Hi Kerstin

Judging by the default JIRA email features, I believe that this option is not available. However, you may try to extend the email funcitons using an external/third party plugin.

Please take a look to the JIRA Enterprise Mail Handler plugin > https://marketplace.atlassian.com/plugins/com.javahollic.jira.jemh-ui . Maybe it could be useful.

Cheers,

Paulo Renato

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