var query = $0 ?? $query ?? '#current project: product';
var issues = youtrack.issues(query .. ' order by: summary');
var mapping = "{
'Open' : 'ToDo',
'Submitted' : 'ToDo',
'To be discussed' : 'InProgress',
'Reopened' : 'InProgress',
'In Progress' : 'InProgress',
'Fixed' : 'Done',
'Can\\'t Reproduce' : 'Verified',
'Duplicate' : 'Verified',
'Incomplete' : 'Verified',
'Obsolete' : 'Verified',
'Won\\'t fix' : 'Verified',
'Verified' : 'Verified'
}";
<table class="table">
// table header
<tr>
<th width="20%"> "Story" </th>
<th width="20%"> "Todo" </th>
<th width="20%"> "In Progress" </th>
<th width="20%"> "Done" </th>
<th width="20%"> "Verified" </th>
</tr>
// table rows
foreach(var issue in issues) {
var currentissues = youtrack.issues('order by: priority, summary tag: current required by: ' .. issue.id);
var tasks = list.groupby(currentissues, mapping .. '[$state]');
<tr>
<td>
youtrack.issuelink{ id: issue.id, text: issue.summary, target: '_blank' };
var missingissues = youtrack.issues('order by: priority, summary tag: -current #unresolved required by: ' .. issue.id);
if(#missingissues) {
<h5><font color="red"> "Unscheduled" </font></h5>
template('Dev/Controls/YouTrackList', { issues: missingissues });
}
</td>
<td> template('Dev/Controls/YouTrackList', { issues: tasks.todo }); </td>
<td> template('Dev/Controls/YouTrackList', { issues: tasks.inprogress }); </td>
<td> template('Dev/Controls/YouTrackList', { issues: tasks.done }); </td>
<td> template('Dev/Controls/YouTrackList', { issues: tasks.verified }); </td>
</tr>
}
</table>
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by