Make Custom Field visible in JETI "send email" Details

Hi,

is there any chance to make a custom Field visible at the right side of the JETI Screen? Like in the "Details" section?

Regards,

Tim

1 answer

1 accepted

0 votes
Henning Tietgens Community Champion May 12, 2013

Yes, you can patch the plugin. You have to modify the file emailissue-5.x.x.jar\templates\emailissue\operation\issue.vm to display your customfield.

#foreach($cf in $action.customFields)
    #if ($cf.name=="Contact Email")
        <li class="item">
            <div class="wrap">
                <strong class="name">$cf.name:</strong>
                <span class="value">$!{cf.getValue($action.getIssueObject())}</span>
            </div>
        </li>
    #end 
#end

With this part of code you can display a custom field "Contact Email" as part of a <ul> list. In our case I place this code at the following position.

&lt;div class="module toggle-wrap"&gt;
    &lt;div class="mod-header"&gt;&lt;h3 class="toggle-title"&gt;$!action.i18n.getText("view.issue.people")&lt;/h3&gt;&lt;/div&gt;
    &lt;div class="mod-content"&gt;
        &lt;ul class="property-list"&gt;
...
            #if ($!action.getIssueObject().getVotes() &amp;&amp; $!action.getIssueObject().getVotes().intValue() &gt; 0)
            &lt;li class="item"&gt;
...
            &lt;/li&gt;
            #end
INSERT ADDITIONAL CODE HERE
        &lt;/ul&gt;
    &lt;/div&gt;
&lt;/div&gt; &lt;!-- module --&gt;

All modifications must be repeated (and tested) for every new delivery of the plugin. I have to do this every time until this change request is implemented...

Henning


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 ...

3,104 views 13 19
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