Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Velocity template (#foreach loop )in jira

Yashaswini Lingaiah November 5, 2012

Hello,

I am trying to get list of objects in a table format on .vm file

<div>
<table>
#foreach( $issues in $issueList )
<tr>
<td>
$issues.issueTypeName
</td>
</tr>
#end

But i am not able to print the list of issues , within the foreach loop.

Can any1 help me with the right syntax , in jira.

Thank you,

1 answer

0 votes
Mizan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 5, 2012

Hi Yash ,

I guess you are trying to print issue keys e.g. : TST-123 ,TST-456 .

use $issues.key

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events