Supporting JIRA

Given

One or more Concordion specifications includes a jira tag in the head element, indicating they relate to a JIRA ticket. Comma separated ticket numbers are supported.

<head>
    <title>Supporting JIRA</title>
    <meta name="jira" content="Support">
</head> 

When

The overview page is generated from JiraSupport.html (this page),

Then

The generated overview page will include the tests, grouped by the JIRA (and ignoring duplicated tests as described in Adding to Multiple Groups).

<h2>Jira Support</h2>
<ul>
    <li>
        <a concordion:run="concordion" href="JiraSupport.html">Supporting JIRA</a>
    </li>
</ul>    

You can link these to your JIRA instance in the main template. For example,

<#if group?starts_with("JIRA")>
    <h2><a href="http://localhost:8080/jira/browse/${group?split(" ")[1]?trim}">${group?cap_first}</a></h2>
    <#else>
        <a name="${group?url}"><h2>${group?cap_first}</h2></a>
</#if>