Examples of JiraException


Examples of net.rcarz.jiraclient.JiraException

                new HashMap<String, String>() {{
                    put("rapidViewId", Integer.toString(rvId));
                }});
            result = restclient.get(reporturi);
        } catch (Exception ex) {
            throw new JiraException("Failed to retrieve backlog data", ex);
        }

        if (!(result instanceof JSONObject))
            throw new JiraException("JSON payload is malformed");

        return new Backlog(restclient, (JSONObject)result);
    }
View Full Code Here

Examples of net.rcarz.jiraclient.JiraException

                    put("rapidViewId", Integer.toString(rvId));
                    put("sprintId", Integer.toString(sprintId));
                }});
            result = restclient.get(reporturi);
        } catch (Exception ex) {
            throw new JiraException("Failed to retrieve sprint report", ex);
        }

        if (!(result instanceof JSONObject))
            throw new JiraException("JSON payload is malformed");

        JSONObject jo = (JSONObject)result;

        if (!jo.containsKey("contents") || !(jo.get("contents") instanceof JSONObject))
            throw new JiraException("Sprint report content is malformed");

        return new SprintReport(restclient, (JSONObject)jo.get("contents"));
    }
View Full Code Here

Examples of net.rcarz.jiraclient.JiraException

        JSON result = null;

        try {
            result = restclient.get(RESOURCE_URI + "rapidview/" + id);
        } catch (Exception ex) {
            throw new JiraException("Failed to retrieve rapid view " + id, ex);
        }

        if (!(result instanceof JSONObject))
            throw new JiraException("JSON payload is malformed");

        return new RapidView(restclient, (JSONObject)result);
    }
View Full Code Here

Examples of net.rcarz.jiraclient.JiraException

        JSON result = null;

        try {
            result = restclient.get(RESOURCE_URI + "rapidview");
        } catch (Exception ex) {
            throw new JiraException("Failed to retrieve rapid views", ex);
        }

        if (!(result instanceof JSONObject))
            throw new JiraException("JSON payload is malformed");

        JSONObject jo = (JSONObject)result;

        if (!jo.containsKey("views") || !(jo.get("views") instanceof JSONArray))
            throw new JiraException("Rapid View result is malformed");

        return GreenHopperField.getResourceArray(
            RapidView.class,
            jo.get("views"),
            restclient
View Full Code Here

Examples of net.rcarz.jiraclient.JiraException

        JSON result = null;

        try {
            result = restclient.get(RESOURCE_URI + "sprintquery/" + id);
        } catch (Exception ex) {
            throw new JiraException("Failed to retrieve sprints", ex);
        }

        if (!(result instanceof JSONObject))
            throw new JiraException("JSON payload is malformed");

        JSONObject jo = (JSONObject)result;

        if (!jo.containsKey("sprints") || !(jo.get("sprints") instanceof JSONArray))
            throw new JiraException("Sprints result is malformed");

        return GreenHopperField.getResourceArray(
            Sprint.class,
            jo.get("sprints"),
            restclient
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.