@@ -286,12 +286,13 @@ public Stream<Issue> getIssuesStream(IssueFilter filter) throws GitLabApiExcepti
286
286
* <pre><code>GitLab Endpoint: GET /projects/:id/issues/:issue_iid</code></pre>
287
287
*
288
288
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
289
- * @param issueId the internal ID of a project's issue
289
+ * @param issueid the internal ID of a project's issue
290
290
* @return the specified Issue instance
291
291
* @throws GitLabApiException if any exception occurs
292
292
*/
293
- public Issue getIssue (Object projectIdOrPath , Integer issueId ) throws GitLabApiException {
294
- Response response = get (Response .Status .OK , getDefaultPerPageParam (), "projects" , getProjectIdOrPath (projectIdOrPath ), "issues" , issueId );
293
+ public Issue getIssue (Object projectIdOrPath , Integer issueIid ) throws GitLabApiException {
294
+ Response response = get (Response .Status .OK , getDefaultPerPageParam (),
295
+ "projects" , getProjectIdOrPath (projectIdOrPath ), "issues" , issueIid );
295
296
return (response .readEntity (Issue .class ));
296
297
}
297
298
@@ -301,12 +302,12 @@ public Issue getIssue(Object projectIdOrPath, Integer issueId) throws GitLabApiE
301
302
* <pre><code>GitLab Endpoint: GET /projects/:id/issues/:issue_iid</code></pre>
302
303
*
303
304
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
304
- * @param issueId the internal ID of a project's issue
305
+ * @param issueIid the internal ID of a project's issue
305
306
* @return the specified Issue as an Optional instance
306
307
*/
307
- public Optional <Issue > getOptionalIssue (Object projectIdOrPath , Integer issueId ) {
308
+ public Optional <Issue > getOptionalIssue (Object projectIdOrPath , Integer issueIid ) {
308
309
try {
309
- return (Optional .ofNullable (getIssue (projectIdOrPath , issueId )));
310
+ return (Optional .ofNullable (getIssue (projectIdOrPath , issueIid )));
310
311
} catch (GitLabApiException glae ) {
311
312
return (GitLabApi .createOptionalFromException (glae ));
312
313
}
@@ -393,7 +394,7 @@ public Issue closeIssue(Object projectIdOrPath, Integer issueIid) throws GitLabA
393
394
* <pre><code>GitLab Endpoint: PUT /projects/:id/issues/:issue_iid</code></pre>
394
395
*
395
396
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
396
- * @param issueIid the issue IID to update, required
397
+ * @param issueIid the issue IID to update, optional
397
398
* @param title the title of an issue, optional
398
399
* @param description the description of an issue, optional
399
400
* @param confidential set the issue to be confidential, default is false, optional
@@ -414,7 +415,7 @@ public Issue updateIssue(Object projectIdOrPath, Integer issueIid, String title,
414
415
}
415
416
416
417
GitLabApiForm formData = new GitLabApiForm ()
417
- .withParam ("title" , title , true )
418
+ .withParam ("title" , title )
418
419
.withParam ("description" , description )
419
420
.withParam ("confidential" , confidential )
420
421
.withParam ("assignee_ids" , assigneeIds )
0 commit comments