How can I get a grid from Table Grid Editor to display in an email notification event?

I tried to add the Table Grid custom field to the includes/fields/ folder as when adding any other custom field to a notification event, but this doesn't render the whole grid. Is there a way to get the whole table to render using the .vm file, the same way the table renders in a subscription email?

Thanks, Josh.

1 answer

Joshua,

(just bumped into this question)

Check out the following faq http://wiki.idalko.com/x/vICeAQ

It details out how you can use velocity to extract the table grid in your velocity

#set ($htmlMarkup = $!moduleDescriptor.getViewHtml($!customfield, "htmlMarkup", $!issue, $!fieldLayoutItem))                     
<tr valign="top">
    <td style="font-size:12px;white-space:nowrap;font-family:Arial,FreeSans,Helvetica,sans-serif;padding:0 10px 10px 0">
        <strong style="font-weight:normal;color:#505050">${customfield}:</strong>
    </td>
    <td style="border: 1px solid #CCCCCC;padding: 2px;" width="80%" bgcolor="#f0f0f0" class="value">
        $!htmlMarkup
    </td>
</tr>
<tr><td colspan="2" height="10"></td></tr>

Is it possible to only show fields for a given issue? For example, if issue - JRA-1234 has values in the grid table to only show these on the email?

Can you elaborate. Do you want to only show the grid a mail.

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 May 30, 2018 in Marketplace Apps

Three tips for boosting your board's efficiency with Story Maps

Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...

852 views 2 9
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