Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can use following templates:

...

Code Block
languagexml
titleExample 1
collapsetrue
 #foreach($comment in $comments)
   <p>$comment.getBody()</p>
 #end

Exporting wiki formatted data from Issue comments section

Code Block
languagexml
titleExample 1
collapsetrue
 #foreach($comment in $comments)
  <p>$fieldRenderer.renderWiki2Html($comment.getBody())</p>
#end

Filtering comments by "Comment internal" flag

...

Code Block
languagexml
titleExample 6
collapsetrue
#macro( renderJiraIssues $listTitle, $itemTitle $collection )
		<h4>$title</h4>
		<ul>
			<li>title count: $subTasks.size()</li>
			#foreach($issue in $collection)
				<li>
					<h5>$itemTitle</h5>
					<ul>
						<li>Key: "$issue.getKey()"</li>
						<li>Summary: "$issue.getSummary()"</li>
					</ul>
				</li>
			#end
		</ul>
#end

<p>Public comments for the issue $issue.getKey() with summary "$issue.getSummary()"</p><br />
<ul>
	<li>
		#renderJiraIssues("Subtasks", "Subtask", $subTasks)
	</li>
	<li>
		#renderJiraIssues("Issue Links", "Linked Issue", $links)
	</li>
	<li>
		<h4>Remote Links</h4>
		<ul>
			<li>Remote Links count: $remoteLinks.size()</li>
			#foreach($remoteLink in $remoteLinks)
				<li>
					<h5>Remote link</h5>
					<ul>
						<li>Title: "$remoteLink.getTitle()"</li>
						<li>Url: $remoteLink.getUrl()</li>
					</ul>
				</li>
			#end
		</ul>
	</li>
</ul>


See also

PDF - Adding Easy PDF Word Issue Templates