Formatted code.
This commit is contained in:
parent
0f58eccab9
commit
8d177e5f35
1 changed files with 31 additions and 31 deletions
|
@ -38,34 +38,6 @@ public class IssueStatusChartView
|
||||||
{
|
{
|
||||||
private static Logger logger = LoggerFactory.getLogger(IssueStatusChartView.class);
|
private static Logger logger = LoggerFactory.getLogger(IssueStatusChartView.class);
|
||||||
|
|
||||||
/**
|
|
||||||
* Builds the grouped.
|
|
||||||
*
|
|
||||||
* @param title
|
|
||||||
* the title
|
|
||||||
* @param project
|
|
||||||
* the project
|
|
||||||
* @return the string
|
|
||||||
* @throws AgirStatoolException
|
|
||||||
* the agir statool exception
|
|
||||||
*/
|
|
||||||
public static String buildGrouped(final String title, final Project project) throws AgirStatoolException
|
|
||||||
{
|
|
||||||
String result;
|
|
||||||
|
|
||||||
StringList labels = new StringList("Maybe", "Active", "Resolved");
|
|
||||||
StringList values = new StringList();
|
|
||||||
values.append(project.issueStats().getMaybeCount());
|
|
||||||
values.append(project.issueStats().getActiveCount());
|
|
||||||
values.append(project.issueStats().getResolvedCount());
|
|
||||||
|
|
||||||
String targetTitle = title + " – " + project.getName();
|
|
||||||
result = build(targetTitle, targetTitle, labels, values);
|
|
||||||
|
|
||||||
//
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Builds the.
|
* Builds the.
|
||||||
*
|
*
|
||||||
|
@ -136,4 +108,32 @@ public class IssueStatusChartView
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Builds the grouped.
|
||||||
|
*
|
||||||
|
* @param title
|
||||||
|
* the title
|
||||||
|
* @param project
|
||||||
|
* the project
|
||||||
|
* @return the string
|
||||||
|
* @throws AgirStatoolException
|
||||||
|
* the agir statool exception
|
||||||
|
*/
|
||||||
|
public static String buildGrouped(final String title, final Project project) throws AgirStatoolException
|
||||||
|
{
|
||||||
|
String result;
|
||||||
|
|
||||||
|
StringList labels = new StringList("Maybe", "Active", "Resolved");
|
||||||
|
StringList values = new StringList();
|
||||||
|
values.append(project.issueStats().getMaybeCount());
|
||||||
|
values.append(project.issueStats().getActiveCount());
|
||||||
|
values.append(project.issueStats().getResolvedCount());
|
||||||
|
|
||||||
|
String targetTitle = title + " – " + project.getName();
|
||||||
|
result = build(targetTitle, targetTitle, labels, values);
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue