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

Examples of com.atlassian.jira.rest.client.api.domain.Subtask


  @Test
  public void issueWithSubtasks() throws JSONException {
    final Issue issue = parseIssue("/json/issue/subtasks-5.json");
    Iterable<Subtask> subtasks = issue.getSubtasks();
    assertEquals(1, Iterables.size(subtasks));
    Subtask subtask = Iterables.get(subtasks, 0, null);
    assertNotNull(subtask);
    assertEquals("SAM-2", subtask.getIssueKey());
    assertEquals("Open", subtask.getStatus().getName());
    assertEquals("Subtask", subtask.getIssueType().getName());
  }
View Full Code Here


    final String issueKey = json.getString("key");
    final JSONObject fields = json.getJSONObject("fields");
    final String summary = fields.getString("summary");
    final Status status = statusJsonParser.parse(fields.getJSONObject("status"));
    final IssueType issueType = issueTypeJsonParser.parse(fields.getJSONObject("issuetype"));
    return new Subtask(issueKey, issueUri, summary, issueType, status);
  }
View Full Code Here

TOP

Related Classes of com.atlassian.jira.rest.client.api.domain.Subtask

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.