Dear Community,
for a long time now I am searching a solution for my problem:
I want to create an overview with the Defects and all "is required by" Features of each individual Defect.
I have not found a solution yet for this problem (I dont even know if this is even possible), but as this use case is often SOOO often at our company, it would be awesome to find a suitable solution.
Thanks in advance :)
Hello @Alexander Mitte
I'm afraid that, you will need a custom solution for such a custom request.
I can propose to try our User Macro for Confluence Cloud
As I understand, you would like to have something like the following:
This is a custom User Macro that represents Defects with their Features (and additionally Issue Types, links, priority, and images).
Here is the board which was the source for the macro:
Everything you see is fully customizable and you can do much more if needed.
For instance, preselecting project or linkage type before inserting the macro with User Parameters.
The template for that is the following:
## The JQL
#set($jql = "project = TEST AND type = Defect ORDER BY created DESC")
## Making a request and set result into $defects var
#set($defects = $JiraManager.get("/rest/api/3/search?jql=$jql").issues)
## Create an Issue URL variable for simplicity
#set($jiraUrl = $StringUtils.replace($baseUrl,"/wiki",""))
#set($issueUrl = "$jiraUrl/browse")
## Table header
<table class="aui aui-table-list">
<thead>
<tr>
<th>Defect</th>
<th>Features</th>
<th>Issue Type</th>
<tr>
</thead>
<tbody>
## Table body
#foreach ($defect in $defects)
<tr>
<td colspan="2">
<img src="$defect.fields.priority.iconUrl" title="$defect.fields.priority.name" height=15px>
<a href='$issueUrl$defect.key'>$defect.key</a>
$defect.fields.summary
</td>
<td>
<img src="$defect.fields.issuetype.iconUrl">
$defect.fields.issuetype.name
</td>
</tr>
## Internal loop through linked issues
#foreach ($link in $defect.fields.issuelinks)
## Includes only "is required by" linkage
#if ( $StringUtils.equals($link.type.inward, "is required by") )
<tr>
<td></td>
<td>
<img src="$link.inwardIssue.fields.priority.iconUrl" title="$link.inwardIssue.fields.priority.name" height=15px>
<a href='$issueUrl$link.inwardIssue.key'>$link.inwardIssue.key</a>
$link.inwardIssue.fields.summary
</td>
<td>
<img src="$link.inwardIssue.fields.issuetype.iconUrl">
$link.inwardIssue.fields.issuetype.name
</td>
</tr>
#end
#end
#end
## Table footer
</tbody>
</table>
As always, you can rely on our support with creating new macros.
Regards,
Roman, CEO of Wombats Corp
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.