Class ResourceStateEventsApi

java.lang.Object
org.gitlab4j.api.AbstractApi
org.gitlab4j.api.ResourceStateEventsApi
All Implemented Interfaces:
Constants

public class ResourceStateEventsApi extends AbstractApi
This class provides an entry point to all the GitLab Resource state events API
See Also:
  • Constructor Details

    • ResourceStateEventsApi

      public ResourceStateEventsApi(GitLabApi gitLabApi)
  • Method Details

    • getIssueStateEvents

      public List<IssueEvent> getIssueStateEvents(Object projectIdOrPath, Long issueIid) throws GitLabApiException
      Gets a list of all state events for a single issue.
      GitLab Endpoint: GET /projects/:id/issues/:issue_iid/resource_state_events
      Parameters:
      projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
      issueIid - the IID of the issue
      Returns:
      a List of IssueEvent for the specified issue
      Throws:
      GitLabApiException - if any exception occurs
    • getIssueStateEvents

      public Pager<IssueEvent> getIssueStateEvents(Object projectIdOrPath, Long issueIid, int itemsPerPage) throws GitLabApiException
      Gets a Pager of all state events for a single issue.
      GitLab Endpoint: GET /projects/:id/issues/:issue_iid/resource_state_events
      Parameters:
      projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
      issueIid - the IID of the issue
      itemsPerPage - the number of LabelEvent instances that will be fetched per page
      Returns:
      the Pager of IssueEvent instances for the specified issue IID
      Throws:
      GitLabApiException - if any exception occurs
    • getIssueStateEventsStream

      public Stream<IssueEvent> getIssueStateEventsStream(Object projectIdOrPath, Long issueIid) throws GitLabApiException
      Gets a Stream of all state events for a single issue.
      GitLab Endpoint: GET /projects/:id/issues/:issue_iid/resource_state_events
      Parameters:
      projectIdOrPath - id, path of the project, or a Project instance holding the project ID or path
      issueIid - the IID of the issue
      Returns:
      a Stream of IssueEvent for the specified issue
      Throws:
      GitLabApiException - if any exception occurs