Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JENKINS-21430 issues can be filtered for assigned/unassigned by portlet
configuration. Also, the busiest assignees can be shown at the top of the portlet.
- Loading branch information
Showing
7 changed files
with
219 additions
and
22 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
src/main/java/javagh/jenkins/mashupportlets/SonarAssigneeStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package javagh.jenkins.mashupportlets; | ||
|
||
import java.util.LinkedList; | ||
import java.util.List; | ||
|
||
import org.apache.commons.lang.StringUtils; | ||
|
||
|
||
/** | ||
* Sonar Assignee Status (used in config dropdowns). | ||
* | ||
* @author G.Henzler | ||
* | ||
*/ | ||
public enum SonarAssigneeStatus { | ||
|
||
ALL, UNASSIGNED, ASSIGNED; | ||
|
||
public static String getPriorityValueByNameJson() { | ||
List<String> items = new LinkedList<String>(); | ||
for (SonarAssigneeStatus sonarPriority : values()) { | ||
items.add("'" + sonarPriority.name() + "':" | ||
+ sonarPriority.ordinal()); | ||
} | ||
return "{ " + StringUtils.join(items, ", ") + " }"; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
.../resources/javagh/jenkins/mashupportlets/SonarIssuesPortlet/help-sonarAssigneeStatus.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div> | ||
Filters for assigned or unassigned issues. | ||
</div> |
3 changes: 3 additions & 0 deletions
3
...resources/javagh/jenkins/mashupportlets/SonarIssuesPortlet/help-sonarShowAssigneeBar.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div> | ||
If ticked, the portlet will show the busiest assignees at the top (assignee filter must not be set to UNASSIGNED for this feature to work). | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters