diff options
author | Matteo Mara <matteo.mara@sonarsource.com> | 2023-07-28 16:53:39 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-08-02 20:03:03 +0000 |
commit | 80f13f494a42e6e84ce7a011d780c54f13df10dc (patch) | |
tree | a7c8743afaa79c5098a49ce5582e66b3ec495311 /sonar-ws | |
parent | 958b8cc8f68974ff0294bba2ee0b7a71af14bf1a (diff) | |
download | sonarqube-80f13f494a42e6e84ce7a011d780c54f13df10dc.tar.gz sonarqube-80f13f494a42e6e84ce7a011d780c54f13df10dc.zip |
SONAR-19372 Add black box test for validating the anticipated transition on issues
Diffstat (limited to 'sonar-ws')
-rw-r--r-- | sonar-ws/src/main/java/org/sonarqube/ws/client/issues/IssuesService.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/IssuesService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/IssuesService.java index fe2299220d7..14140477ed0 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/IssuesService.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/IssuesService.java @@ -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(); + } + } |