Examples of IssueRestClient


Examples of com.atlassian.jira.rest.client.api.IssueRestClient

    assertThatIssueNotExists(issueKey);
  }

  @Test
  public void testDeleteIssueWithSubtasks() {
    final IssueRestClient issueClient = client.getIssueClient();

    // verify that issue exist and create subtask
    final String issueKey = "TST-1";
    final Issue issue = issueClient.getIssue(issueKey).claim();
    assertEquals(issueKey, issue.getKey());
    final BasicIssue subtask = addSubtaskToIssue(issue);
    System.out.println(subtask);

    // delete issue
    issueClient.deleteIssue(issueKey, true).claim();

    // verify
    assertThatIssueNotExists(issueKey);
    assertThatIssueNotExists(subtask.getKey());
  }
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.