summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-08-10 15:48:02 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-08-10 15:48:02 +0200
commita2aa45f04432c389cdc43539de3af0bdd8162ca6 (patch)
treebdea5a8d9d84da8306624d7765de70f942f33398
parentdf1e852ed659f62455cbbb5a2a8bf69190ff42a9 (diff)
downloadsonarqube-a2aa45f04432c389cdc43539de3af0bdd8162ca6.tar.gz
sonarqube-a2aa45f04432c389cdc43539de3af0bdd8162ca6.zip
SONAR-6582 return transitions actions and comments when returning one issue in WS
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/issue/ws/SearchResponseFormat.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/issue/ws/SearchResponseFormat.java b/server/sonar-server/src/main/java/org/sonar/server/issue/ws/SearchResponseFormat.java
index 558e70b1165..1a5a8f874cc 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/issue/ws/SearchResponseFormat.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/issue/ws/SearchResponseFormat.java
@@ -99,7 +99,11 @@ public class SearchResponseFormat {
if (data.getIssues().size() == 1) {
Issues.Issue.Builder issueBuilder = Issues.Issue.newBuilder();
- formatIssue(issueBuilder, data.getIssues().get(0), data);
+ IssueDto dto = data.getIssues().get(0);
+ formatIssue(issueBuilder, dto, data);
+ formatIssueActions(data, issueBuilder, dto);
+ formatIssueTransitions(data, issueBuilder, dto);
+ formatIssueComments(data, issueBuilder, dto);
response.setIssue(issueBuilder.build());
}
response.addAllComponents(formatComponents(data));