]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19372 Add black box test for validating the anticipated transition on issues
authorMatteo Mara <matteo.mara@sonarsource.com>
Fri, 28 Jul 2023 14:53:39 +0000 (16:53 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 2 Aug 2023 20:03:03 +0000 (20:03 +0000)
sonar-ws/src/main/java/org/sonarqube/ws/client/issues/IssuesService.java

index fe2299220d7db424e330a6824ae84164452dffe8..14140477ed08aa7e4951049b4d1d4cbdbe5f5a03 100644 (file)
@@ -348,4 +348,18 @@ public class IssuesService extends BaseService {
         .setParam("changedSince", request.getChangedSince())
     ).contentStream();
   }
+
+  /**
+   * This is part of the internal API.
+   * This is a POST request.
+   *
+   * @see <a href="https://next.sonarqube.com/sonarqube/api/issues/anticipated_transitions">Further information about this action online (including a response example)</a>
+   * @since 10.2
+   */
+  public int anticipatedTransitions(String projectKey, String body) {
+    return call(
+      new PostRequest(path("anticipated_transitions?projectKey=" + projectKey))
+        .setBody(body)).code();
+  }
+
 }