Provided Default Templates for Confluence

Provided Default Templates for Confluence

After installing Teamworkx Issue Publisher for Jira several default templates are already available, for example:

Default Single Issue Template

Name

Default Single Issue Template

Page Title

$!fieldHelper.getValueAsString("summary") ($!fieldHelper.getValueAsString("key"))

Body

<table class="wrapped"><colgroup><col /><col /></colgroup> <tbody> <tr> <th>Key</th> <td>$!fieldHelper.getValueAsString("key")</td></tr> <tr> <th>Created</th> <td>$!fieldHelper.getValueAsString("created")</td></tr> <tr> <th>Due</th> <td>$!fieldHelper.getValueAsString("dueDate")</td></tr> <tr> <th>Reporter</th> <td>$!issue.getReporter().getDisplayName()</td></tr> <tr> <th>Assignee</th> <td> <p>$!issue.getAssignee().getDisplayName()</p></td></tr> <tr> <th>Type</th> <td>$!fieldHelper.getValueAsString("issueType")</td></tr> <tr> <th>Priority</th> <td>$!fieldHelper.getValueAsString("priority")</td></tr> <tr> <th>Status</th> <td>$!fieldHelper.getValueAsString("status")</td></tr> <tr> <th>Component/s</th> <td>$!fieldHelper.getValueAsString("components")</td></tr></tbody></table> <h2>Description</h2> <p>$!fieldHelper.getValueAsString("description")</p> #if(! $issue.getSubTaskObjects().isEmpty()) <h2>Sub-Tasks</h2> <table><colgroup><col /><col /><col /></colgroup> <tbody> <tr> <th>Key</th> <th>Summary</th> <th>Status</th></tr> #foreach($subtask in $issue.getSubTaskObjects()) <tr> <td>$!fieldHelper.getValueAsString($subtask, "key")</td> <td>$!fieldHelper.getValueAsString($subtask, "summary")</td> <td>$!fieldHelper.getValueAsString($subtask, "status")</td></tr> #end </tbody></table>

Labels

$!fieldHelper.getValueAsString("labels")

Default Single Issue Template with Comments

Name

Default Single Issue Template with Comments

Page Title

$!fieldHelper.getValueAsString("summary") ($!fieldHelper.getValueAsString("key"))

Body

<table class="wrapped"><colgroup><col /><col /></colgroup> <tbody> <tr> <th>Key</th> <td>$!fieldHelper.getValueAsString("key")</td></tr> <tr> <th>Created</th> <td>$!fieldHelper.getValueAsString("created")</td></tr> <tr> <th>Due</th> <td>$!fieldHelper.getValueAsString("dueDate")</td></tr> <tr> <th>Reporter</th> <td>$!fieldHelper.getValue("reporter").getDisplayName()</td></tr> <tr> <th>Assignee</th> <td> <p>$!fieldHelper.getValue("assignee").getDisplayName()</p></td></tr> <tr> <th>Type</th> <td>$!fieldHelper.getValueAsString("issueType")</td></tr> <tr> <th>Priority</th> <td>$!fieldHelper.getValueAsString("priority")</td></tr> <tr> <th>Status</th> <td>$!fieldHelper.getValueAsString("status")</td></tr> <tr> <th>Component/s</th> <td>$!fieldHelper.getValueAsString("components")</td></tr></tbody></table> <h2>Description</h2> <p>$!fieldHelper.getWikiMarkupValue("description")</p> #if(! $issue.getSubTaskObjects().isEmpty()) <h2>Sub-Tasks</h2> <table><colgroup><col /><col /><col /></colgroup> <tbody> <tr> <th>Key</th> <th>Summary</th> <th>Status</th></tr> #foreach($subtask in $issue.getSubTaskObjects()) <tr> <td>$!fieldHelper.getValueAsString($subtask, "key")</td> <td>$!fieldHelper.getValueAsString($subtask, "summary")</td> <td>$!fieldHelper.getValueAsString($subtask, "status")</td></tr> #end </tbody></table> #end #set($comments = $issueHelper.getCommentsForUser()) #if(! $comments.isEmpty()) <h2>Comments</h2> #foreach($comment in $comments) <table class="wrapped"> <tbody> <tr> <td>Created: $!fieldHelper.getDateTimeAsString($comment.getCreated()) by $!comment.getAuthorFullName()</td> #if($comment.getCreated() != $comment.getUpdated()) <td> Updated: $!fieldHelper.getDateTimeAsString($comment.getUpdated()) by $!comment.getUpdateAuthorFullName()</td></tr> <tr><td colspan="2">$comment.getBody()</td></tr> #else </tr> <tr><td >$comment.getBody()</td></tr> #end </tbody></table> #end #end

Labels

$!fieldHelper.getValueAsString("labels")

Default Multi Issue Template

Name

Default Multi Issue Template

Page Title

$!fieldHelper.getValueAsString("summary") ($!fieldHelper.getValueAsString("key"))

Header

<table class="wrapped"><colgroup><col /><col /></colgroup> <tbody> <tr> <th>Key</th> <td>$!fieldHelper.getValueAsString("key")</td></tr> <tr> <th>Created</th> <td>$!fieldHelper.getValueAsString("created")</td></tr> <tr> <th>Due</th> <td>$!fieldHelper.getValueAsString("dueDate")</td></tr> <tr> <th>Reporter</th> <td>$!issue.getReporter().getDisplayName()</td></tr> <tr> <th>Assignee</th> <td> <p>$!issue.getAssignee().getDisplayName()</p></td></tr> <tr> <th>Type</th> <td>$!fieldHelper.getValueAsString("issueType")</td></tr> <tr> <th>Priority</th> <td>$!fieldHelper.getValueAsString("priority")</td></tr> <tr> <th>Status</th> <td>$!fieldHelper.getValueAsString("status")</td></tr> <tr> <th>Component/s</th> <td>$!fieldHelper.getValueAsString("components")</td></tr></tbody></table> <h2>Description</h2> <p>$!fieldHelper.getValueAsString("description")</p> #if(! $issue.getSubTaskObjects().isEmpty()) <h2>Sub-Tasks</h2> <table><colgroup><col /><col /><col /></colgroup> <tbody> <tr> <th>Key</th> <th>Summary</th> <th>Status</th></tr> #foreach($subtask in $issue.getSubTaskObjects()) <tr> <td>$!fieldHelper.getValueAsString($subtask, "key")</td> <td>$!fieldHelper.getValueAsString($subtask, "summary")</td> <td>$!fieldHelper.getValueAsString($subtask, "status")</td></tr> #end </tbody></table>

Body

<table class="wrapped"><colgroup><col /><col /></colgroup> <tbody> <tr> <th>Key</th> <td>$!fieldHelper.getValueAsString("key")</td></tr> <tr> <th>Created</th> <td>$!fieldHelper.getValueAsString("created")</td></tr> <tr> <th>Due</th> <td>$!fieldHelper.getValueAsString("dueDate")</td></tr> <tr> <th>Reporter</th> <td>$!issue.getReporter().getDisplayName()</td></tr> <tr> <th>Assignee</th> <td> <p>$!issue.getAssignee().getDisplayName()</p></td></tr> <tr> <th>Type</th> <td>$!fieldHelper.getValueAsString("issueType")</td></tr> <tr> <th>Priority</th> <td>$!fieldHelper.getValueAsString("priority")</td></tr> <tr> <th>Status</th> <td>$!fieldHelper.getValueAsString("status")</td></tr> <tr> <th>Component/s</th> <td>$!fieldHelper.getValueAsString("components")</td></tr></tbody></table> <h2>Description</h2> <p>$!fieldHelper.getValueAsString("description")</p> #if(! $issue.getSubTaskObjects().isEmpty()) <h2>Sub-Tasks</h2> <table><colgroup><col /><col /><col /></colgroup> <tbody> <tr> <th>Key</th> <th>Summary</th> <th>Status</th></tr> #foreach($subtask in $issue.getSubTaskObjects()) <tr> <td>$!fieldHelper.getValueAsString($subtask, "key")</td> <td>$!fieldHelper.getValueAsString($subtask, "summary")</td> <td>$!fieldHelper.getValueAsString($subtask, "status")</td></tr> #end </tbody></table>

 

 

Footer

Empty

Labels

$!fieldHelper.getValueAsString("labels")

Default Printable Issue View Template

Name

Default Printable Issue View Template

HTML Body

$issueHelper.getPrintableIssueView($issue)

File Name

Issue_${issue.key}_$!{fieldHelper.getDateWithFormat($now, "yyyy-MM-dd_HH-mm")}.pdf

Body

<table class="wrapped"><colgroup><col /><col /></colgroup> <tbody> <tr> <th>Key</th> <td>$!fieldHelper.getValueAsString("key")</td></tr> <tr> <th>Created</th> <td>$!fieldHelper.getValueAsString("created")</td></tr> <tr> <th>Due</th> <td>$!fieldHelper.getValueAsString("dueDate")</td></tr> <tr> <th>Reporter</th> <td>$!issue.getReporter().getDisplayName()</td></tr> <tr> <th>Assignee</th> <td> <p>$!issue.getAssignee().getDisplayName()</p></td></tr> <tr> <th>Type</th> <td>$!fieldHelper.getValueAsString("issueType")</td></tr> <tr> <th>Priority</th> <td>$!fieldHelper.getValueAsString("priority")</td></tr> <tr> <th>Status</th> <td>$!fieldHelper.getValueAsString("status")</td></tr> <tr> <th>Component/s</th> <td>$!fieldHelper.getValueAsString("components")</td></tr></tbody></table> <h2>Description</h2> <p>$!fieldHelper.getValueAsString("description")</p> #if(! $issue.getSubTaskObjects().isEmpty()) <h2>Sub-Tasks</h2> <table><colgroup><col /><col /><col /></colgroup> <tbody> <tr> <th>Key</th> <th>Summary</th> <th>Status</th></tr> #foreach($subtask in $issue.getSubTaskObjects()) <tr> <td>$!fieldHelper.getValueAsString($subtask, "key")</td> <td>$!fieldHelper.getValueAsString($subtask, "summary")</td> <td>$!fieldHelper.getValueAsString($subtask, "status")</td></tr> #end </tbody></table>