Package com.atlassian.jira.rest.client.internal.json.gen

Examples of com.atlassian.jira.rest.client.internal.json.gen.CommentJsonGenerator


        }
        if (transitionInput.getComment() != null) {
          if (buildNumber >= ServerVersionConstants.BN_JIRA_5) {
            jsonObject.put("update", new JSONObject().put("comment",
                new JSONArray().put(new JSONObject().put("add",
                    new CommentJsonGenerator(getVersionInfo(progressMonitor))
                        .generate(transitionInput.getComment())))));
          } else {
            jsonObject.put("comment", new CommentJsonGenerator(getVersionInfo(progressMonitor))
                .generate(transitionInput.getComment()));
          }
        }
        JSONObject fieldsJs = new JSONObject();
        final Iterable<FieldInput> fields = transitionInput.getFields();
View Full Code Here


  @Override
  public void addComment(final ProgressMonitor progressMonitor, final URI commentsUri, final Comment comment) {
    post(commentsUri, new Callable<JSONObject>() {
      @Override
      public JSONObject call() throws Exception {
        return new CommentJsonGenerator(getVersionInfo(progressMonitor)).generate(comment);
      }
    }, progressMonitor);
  }
View Full Code Here

        }
        if (transitionInput.getComment() != null) {
          if (buildNumber >= ServerVersionConstants.BN_JIRA_5) {
            jsonObject.put("update", new JSONObject().put("comment",
                new JSONArray().put(new JSONObject().put("add",
                    new CommentJsonGenerator(getVersionInfo(progressMonitor))
                        .generate(transitionInput.getComment())))));
          } else {
            jsonObject.put("comment", new CommentJsonGenerator(getVersionInfo(progressMonitor))
                .generate(transitionInput.getComment()));
          }
        }
        JSONObject fieldsJs = new JSONObject();
        final Iterable<FieldInput> fields = transitionInput.getFields();
View Full Code Here

  @Override
  public void addComment(final ProgressMonitor progressMonitor, final URI commentsUri, final Comment comment) {
    post(commentsUri, new Callable<JSONObject>() {
      @Override
      public JSONObject call() throws Exception {
        return new CommentJsonGenerator(getVersionInfo(progressMonitor)).generate(comment);
      }
    }, progressMonitor);
  }
View Full Code Here

TOP

Related Classes of com.atlassian.jira.rest.client.internal.json.gen.CommentJsonGenerator

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.