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 vote
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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

79 views 0 5
Read article

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