All Downloads are FREE. Search and download functionalities are using the official Maven repository.

backlog4j.api.CountIssue Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package backlog4j.api;

import backlog4j.BacklogClient;
import backlog4j.BacklogException;

/**
 * @author eguchi
 */
public class CountIssue extends AbstractFindIssueRequest {

    private final BacklogClient client;


    public CountIssue(BacklogClient client) {
        this.client = client;
    }

    @Override
    protected CountIssue getThis() {
        return this;
    }

    private void checkParameters() {
        if (getProjectId() == null) {
            throw new BacklogException("projectId is required");
        }
    }

    public Integer execute() {
        checkParameters();
        Integer res = (Integer) client.execute(BACKLOG_COUNT_ISSUE, map);

        return res;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy