Package com.atlassian.jira.rest.client.domain

Examples of com.atlassian.jira.rest.client.domain.Transition


    public Transition parse(JSONObject json, int id) throws JSONException {
        final String name = json.getString("name");
        final Collection<Transition.Field> fields = JsonParseUtil.parseJsonArray(json.getJSONArray("fields"),
                transitionFieldJsonParser);
        return new Transition(name, id, fields);
    }
View Full Code Here


          final Iterator<String> iterator = jsonObject.keys();
          while (iterator.hasNext()) {
            final String key = iterator.next();
            try {
              final int id = Integer.parseInt(key);
              final Transition transition = transitionJsonParser.parse(jsonObject.getJSONObject(key), id);
              transitions.add(transition);
            } catch (JSONException e) {
              throw new RestClientException(e);
            } catch (NumberFormatException e) {
              throw new RestClientException("Transition id should be an integer, but found [" + key + "]", e);
View Full Code Here

TOP

Related Classes of com.atlassian.jira.rest.client.domain.Transition

Copyright © 2018 www.massapicom. 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.