Class ResourceStateEventsApi

    • Constructor Detail

      • ResourceStateEventsApi

        public ResourceStateEventsApi​(GitLabApi gitLabApi)
    • Method Detail

      • getIssueStateEvents

        public java.util.List<IssueEvent> getIssueStateEvents​(java.lang.Object projectIdOrPath,
                                                              java.lang.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​(java.lang.Object projectIdOrPath,
                                                     java.lang.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 java.util.stream.Stream<IssueEvent> getIssueStateEventsStream​(java.lang.Object projectIdOrPath,
                                                                             java.lang.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