Examples of Worklog


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

    @Test
    public void testParseIssueJiraRepresentationJrjc49() throws JSONException {
        final Issue issue = parseIssue("/json/issue/jrjc49.json");
        final Iterable<Worklog> worklogs = issue.getWorklogs();
        assertEquals(1, Iterables.size(worklogs));
        final Worklog worklog = Iterables.get(worklogs, 0);
        assertNull(worklog.getComment());
        assertEquals(180, worklog.getMinutesSpent());
        assertEquals("Sample, User", worklog.getAuthor().getDisplayName());

    }
View Full Code Here

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

    final DateTime creationDate = JsonParseUtil.parseDateTime(json, "created");
    final DateTime updateDate = JsonParseUtil.parseDateTime(json, "updated");
    final DateTime startDate = JsonParseUtil.parseDateTime(json, "started");
    final int minutesSpent = json.getInt("minutesSpent");
    final Visibility visibility = new VisibilityJsonParser().parseVisibility(json);
        return new Worklog(self, issueUri, author, updateAuthor, comment, creationDate, updateDate, startDate, minutesSpent, visibility);
  }
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.