Examples of JiraIssueReporter


Examples of org.wso2.carbon.jira.reporting.JiraIssueReporter

     * @return
     * @throws IssueTrackerException
     */
    public String login(GenericCredentials credentials) throws IssueTrackerException {

        JiraIssueReporter reporter = JiraIssueReporter.getInstance();

        String token = null;
        try {
            token = reporter.login(credentials);
        } catch (IssueTrackerException e) {
            ExceptionHandler.handleException("Error in login.", e, log);
        }
        return token;

View Full Code Here

Examples of org.wso2.carbon.jira.reporting.JiraIssueReporter

     * @return
     * @throws IssueTrackerException
     */
    public String validateCredentials(GenericCredentials credentials) throws IssueTrackerException {

        JiraIssueReporter reporter = JiraIssueReporter.getInstance();

        String token = null;
        try {
            token = reporter.login(credentials);
        } catch (IssueTrackerException e) {
            ExceptionHandler.handleException("Error in login.", e, log);
        }
        return token;
    }
View Full Code Here

Examples of org.wso2.carbon.jira.reporting.JiraIssueReporter

     * @throws IssueTrackerException
     */
    public String captureIssueInfo(GenericIssue genericIssue, String token, String url) throws IssueTrackerException {

        String issueKey = null;
        JiraIssueReporter reporter = JiraIssueReporter.getInstance();

        try {
            issueKey = reporter.reportIssue(genericIssue, token, url);
        } catch (IssueTrackerException e) {
            ExceptionHandler.handleException("Error in reporting the issue", e, log);
        }

        return issueKey;
View Full Code Here

Examples of org.wso2.carbon.jira.reporting.JiraIssueReporter

     * @return
     * @throws IssueTrackerException
     */
    private JSONArray getProjectNames(String token, String url) throws IssueTrackerException {

        JiraIssueReporter reporter = JiraIssueReporter.getInstance();

        List<String> projectNames = null;
        try {
            projectNames = reporter.getJiraProjects(token, url);
        } catch (IssueTrackerException e) {
            ExceptionHandler.handleException("Error retrieving project names.", e, log);
        }

        JSONArray jsonArray = new JSONArray();
View Full Code Here

Examples of org.wso2.carbon.jira.reporting.JiraIssueReporter

     * @return
     * @throws IssueTrackerException
     */
    private JSONObject getIssueTypes(String token, JSONObject jsonObject, String url) throws IssueTrackerException {

        JiraIssueReporter reporter = JiraIssueReporter.getInstance();
        List<GenericIssueType> issueTypes = null;

        try {
            issueTypes = reporter.getIssueTypes(token, url);
        } catch (IssueTrackerException e) {
            ExceptionHandler.handleException("Error obtaining issue types", e, log);
        }

        JSONArray issueNames = new JSONArray();
View Full Code Here

Examples of org.wso2.carbon.jira.reporting.JiraIssueReporter

     * @return
     * @throws IssueTrackerException
     */
    private JSONObject getPriorityTypes(String token, JSONObject jsonObject, String url) throws IssueTrackerException {

        JiraIssueReporter reporter = JiraIssueReporter.getInstance();
        List<GenericPriority> priorities = null;

        try {
            priorities = reporter.getPriorityTypes(token, url);
        } catch (IssueTrackerException e) {
            ExceptionHandler.handleException("Error obtaining priority types", e, log);
        }

        JSONArray priorityNames = new JSONArray();
View Full Code Here

Examples of org.wso2.carbon.jira.reporting.JiraIssueReporter

     * @throws IssueTrackerException
     */
    public List<GenericIssue> retrieveIssues(String token, String url, int maxResults) throws IssueTrackerException {

        List<GenericIssue> genericIssues = new ArrayList<GenericIssue>();
        JiraIssueReporter reporter = JiraIssueReporter.getInstance();
        try {

            genericIssues = reporter.retrieveIssuesByQuery(token, url, maxResults);

        } catch (IssueTrackerException e) {
            ExceptionHandler.handleException("Unable to retrieve issues for ", e, log);
        }

View Full Code Here

Examples of org.wso2.carbon.jira.reporting.JiraIssueReporter

                }
            }

        }

        JiraIssueReporter reporter = JiraIssueReporter.getInstance();

        String[] fileNameArray = fileNames.toArray(new String[fileNames.size()]);

        String[] dataArray = data.toArray(new String[data.size()]);

        return reporter.attachFiles(token, issueKey, fileNameArray, dataArray, url);
    }
View Full Code Here

Examples of org.wso2.carbon.jira.reporting.JiraIssueReporter

     * @return
     * @throws IssueTrackerException
     */
    public long getIssueCount(String token, String url) throws IssueTrackerException {

        JiraIssueReporter reporter = JiraIssueReporter.getInstance();

        long count = 0;

        try {
            count = reporter.getIssueCount(token, url);
        } catch (IssueTrackerException e) {
            ExceptionHandler.handleException("Error retrieving issue count.", e, log);
        }

        return count;
View Full Code Here

Examples of org.wso2.carbon.jira.reporting.JiraIssueReporter

     */
    public boolean deleteIssue(String token, String issueKey, String url) throws IssueTrackerException {

        boolean isIssueDeleted = false;

        JiraIssueReporter reporter = JiraIssueReporter.getInstance();

        try {
            isIssueDeleted = reporter.deleteIssues(token, issueKey, url);
        } catch (IssueTrackerException e) {
            ExceptionHandler.handleException("Error deleting the issue " + issueKey + ".", e, log);
        }

        return isIssueDeleted;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.