Examples of ChangelogItem


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

    verifyChangelog(iterator.next(),
        "2012-04-12T14:28:28.255+0200",
        user1,
        ImmutableList.of(
            new ChangelogItem(FieldType.JIRA, "duedate", null, null, "2012-04-12", "2012-04-12 00:00:00.0"),
            new ChangelogItem(FieldType.CUSTOM, "Radio Field", null, null, "10000", "One")
        ));

    verifyChangelog(iterator.next(),
        "2012-04-12T14:28:44.079+0200",
        user1,
        ImmutableList.of(
            new ChangelogItem(FieldType.JIRA, "assignee", "user1", "User One", "user2", "User Two")
        ));

    verifyChangelog(iterator.next(),
        "2012-04-12T14:30:09.690+0200",
        user2,
        ImmutableList.of(
            new ChangelogItem(FieldType.JIRA, "summary", null, "Simple history test", null, "Simple history test - modified"),
            new ChangelogItem(FieldType.JIRA, "issuetype", "1", "Bug", "2", "New Feature"),
            new ChangelogItem(FieldType.JIRA, "priority", "3", "Major", "4", "Minor"),
            new ChangelogItem(FieldType.JIRA, "description", null, "Initial Description", null, "Modified Description"),
            new ChangelogItem(FieldType.CUSTOM, "Date Field", "2012-04-11T14:26+0200", "11/Apr/12 2:26 PM", "2012-04-12T14:26+0200", "12/Apr/12 2:26 PM"),
            new ChangelogItem(FieldType.JIRA, "duedate", "2012-04-12", "2012-04-12 00:00:00.0", "2012-04-13", "2012-04-13 00:00:00.0"),
            new ChangelogItem(FieldType.CUSTOM, "Radio Field", "10000", "One", "10001", "Two"),
            new ChangelogItem(FieldType.CUSTOM, "Text Field", null, "Initial text field value", null, "Modified text field value")
        ));

    verifyChangelog(iterator.next(),
        "2012-04-12T14:28:44.079+0200",
        null,
        ImmutableList.of(
            new ChangelogItem(FieldType.JIRA, "assignee", "user1", "User One", "user2", "User Two")
        ));
  }
View Full Code Here

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

      assertEquals("admin", chg1.getAuthor().getName());
      assertEquals("Administrator", chg1.getAuthor().getDisplayName());
      assertEquals(new DateTime(2010, 8, 17, 16, 40, 34, 924).toInstant(), chg1.getCreated().toInstant());

      assertEquals(Collections
          .singletonList(new ChangelogItem(FieldType.JIRA, "status", "1", "Open", "3", "In Progress")), chg1
          .getItems());

      final ChangelogGroup chg2 = Iterables.get(changelog, 20);
      assertEquals("admin", chg2.getAuthor().getName());
      assertEquals("Administrator", chg2.getAuthor().getDisplayName());
      assertEquals(new DateTime(2010, 8, 24, 16, 10, 23, 468).toInstant(), chg2.getCreated().toInstant());

      final List<ChangelogItem> expected = ImmutableList.of(
          new ChangelogItem(FieldType.JIRA, "timeoriginalestimate", null, null, "0", "0"),
          new ChangelogItem(FieldType.CUSTOM, "My Radio buttons", null, null, null, "Another"),
          new ChangelogItem(FieldType.CUSTOM, "project3", null, null, "10000", "Test Project"),
          new ChangelogItem(FieldType.CUSTOM, "My Number Field New", null, null, null, "1.45")
      );
      assertEquals(expected, chg2.getItems());
    }
    final Operations operations = issueWithChangelogAndOperations.getOperations();
    if (isJira5xOrNewer()) {
View Full Code Here

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

    final String field = JsonParseUtil.getNestedString(json, "field");
    final String from = JsonParseUtil.getNullableString(json, "from");
    final String fromString = JsonParseUtil.getNullableString(json, "fromString");
    final String to = JsonParseUtil.getNullableString(json, "to");
    final String toString = JsonParseUtil.getNullableString(json, "toString");
    return new ChangelogItem(fieldType, field, from, fromString, to, toString);
  }
View Full Code Here

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

    final String field = JsonParseUtil.getNestedString(json, "field");
    final String from = JsonParseUtil.getNullableString(json, "from");
    final String fromString = JsonParseUtil.getNullableString(json, "fromString");
    final String to = JsonParseUtil.getNullableString(json, "to");
    final String toString = JsonParseUtil.getNullableString(json, "toString");
    return new ChangelogItem(fieldType, field, from, fromString, to, toString);
  }
View Full Code Here

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

    verifyChangelog(iterator.next(),
        "2012-04-12T14:28:28.255+0200",
        user1,
        ImmutableList.of(
            new ChangelogItem(ChangelogItem.FieldType.JIRA, "duedate", null, null, "2012-04-12", "2012-04-12 00:00:00.0"),
            new ChangelogItem(ChangelogItem.FieldType.CUSTOM, "Radio Field", null, null, "10000", "One")
        ));

    verifyChangelog(iterator.next(),
        "2012-04-12T14:28:44.079+0200",
        user1,
        ImmutableList.of(
            new ChangelogItem(ChangelogItem.FieldType.JIRA, "assignee", "user1", "User One", "user2", "User Two")
        ));

    verifyChangelog(iterator.next(),
        "2012-04-12T14:30:09.690+0200",
        user2,
        ImmutableList.of(
            new ChangelogItem(ChangelogItem.FieldType.JIRA, "summary", null, "Simple history test", null, "Simple history test - modified"),
            new ChangelogItem(ChangelogItem.FieldType.JIRA, "issuetype", "1", "Bug", "2", "New Feature"),
            new ChangelogItem(ChangelogItem.FieldType.JIRA, "priority", "3", "Major", "4", "Minor"),
            new ChangelogItem(ChangelogItem.FieldType.JIRA, "description", null, "Initial Description", null, "Modified Description"),
            new ChangelogItem(ChangelogItem.FieldType.CUSTOM, "Date Field", "2012-04-11T14:26+0200", "11/Apr/12 2:26 PM", "2012-04-12T14:26+0200", "12/Apr/12 2:26 PM"),
            new ChangelogItem(ChangelogItem.FieldType.JIRA, "duedate", "2012-04-12", "2012-04-12 00:00:00.0", "2012-04-13", "2012-04-13 00:00:00.0"),
            new ChangelogItem(ChangelogItem.FieldType.CUSTOM, "Radio Field", "10000", "One", "10001", "Two"),
            new ChangelogItem(ChangelogItem.FieldType.CUSTOM, "Text Field", null, "Initial text field value", null, "Modified text field value")
        ));

    verifyChangelog(iterator.next(),
        "2012-04-12T14:28:44.079+0200",
        null,
        ImmutableList.of(
            new ChangelogItem(ChangelogItem.FieldType.JIRA, "assignee", "user1", "User One", "user2", "User Two")
        ));
  }
View Full Code Here

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

      assertEquals("admin", chg1.getAuthor().getName());
      assertEquals("Administrator", chg1.getAuthor().getDisplayName());
      assertEquals(new DateTime(2010, 8, 17, 16, 40, 34, 924).toInstant(), chg1.getCreated().toInstant());

      assertEquals(Collections
          .singletonList(new ChangelogItem(ChangelogItem.FieldType.JIRA, "status", "1", "Open", "3", "In Progress")), chg1
          .getItems());

      final ChangelogGroup chg2 = Iterables.get(changelog, 20);
      assertEquals("admin", chg2.getAuthor().getName());
      assertEquals("Administrator", chg2.getAuthor().getDisplayName());
      assertEquals(new DateTime(2010, 8, 24, 16, 10, 23, 468).toInstant(), chg2.getCreated().toInstant());

      final List<ChangelogItem> expected = ImmutableList.of(
          new ChangelogItem(ChangelogItem.FieldType.JIRA, "timeoriginalestimate", null, null, "0", "0"),
          new ChangelogItem(ChangelogItem.FieldType.CUSTOM, "My Radio buttons", null, null, null, "Another"),
          new ChangelogItem(ChangelogItem.FieldType.CUSTOM, "project3", null, null, "10000", "Test Project"),
          new ChangelogItem(ChangelogItem.FieldType.CUSTOM, "My Number Field New", null, null, null, "1.45")
      );
      assertEquals(expected, chg2.getItems());
    }
  }
View Full Code Here

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

      assertEquals("admin", chg1.getAuthor().getName());
      assertEquals("Administrator", chg1.getAuthor().getDisplayName());
      assertEquals(new DateTime(2010, 8, 17, 16, 40, 34, 924).toInstant(), chg1.getCreated().toInstant());

      assertEquals(Collections
          .singletonList(new ChangelogItem(ChangelogItem.FieldType.JIRA, "status", "1", "Open", "3", "In Progress")), chg1
          .getItems());

      final ChangelogGroup chg2 = Iterables.get(changelog, 20);
      assertEquals("admin", chg2.getAuthor().getName());
      assertEquals("Administrator", chg2.getAuthor().getDisplayName());
      assertEquals(new DateTime(2010, 8, 24, 16, 10, 23, 468).toInstant(), chg2.getCreated().toInstant());

      final List<ChangelogItem> expected = ImmutableList.of(
          new ChangelogItem(ChangelogItem.FieldType.JIRA, "timeoriginalestimate", null, null, "0", "0"),
          new ChangelogItem(ChangelogItem.FieldType.CUSTOM, "My Radio buttons", null, null, null, "Another"),
          new ChangelogItem(ChangelogItem.FieldType.CUSTOM, "project3", null, null, "10000", "Test Project"),
          new ChangelogItem(ChangelogItem.FieldType.CUSTOM, "My Number Field New", null, null, null, "1.45")
      );
      assertEquals(expected, chg2.getItems());
    }
  }
View Full Code Here

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

    verifyChangelog(iterator.next(),
        "2012-04-12T14:28:28.255+0200",
        user1,
        ImmutableList.of(
            new ChangelogItem(ChangelogItem.FieldType.JIRA, "duedate", null, null, "2012-04-12", "2012-04-12 00:00:00.0"),
            new ChangelogItem(ChangelogItem.FieldType.CUSTOM, "Radio Field", null, null, "10000", "One")
        ));

    verifyChangelog(iterator.next(),
        "2012-04-12T14:28:44.079+0200",
        user1,
        ImmutableList.of(
            new ChangelogItem(ChangelogItem.FieldType.JIRA, "assignee", "user1", "User One", "user2", "User Two")
        ));

    verifyChangelog(iterator.next(),
        "2012-04-12T14:30:09.690+0200",
        user2,
        ImmutableList.of(
            new ChangelogItem(ChangelogItem.FieldType.JIRA, "summary", null, "Simple history test", null, "Simple history test - modified"),
            new ChangelogItem(ChangelogItem.FieldType.JIRA, "issuetype", "1", "Bug", "2", "New Feature"),
            new ChangelogItem(ChangelogItem.FieldType.JIRA, "priority", "3", "Major", "4", "Minor"),
            new ChangelogItem(ChangelogItem.FieldType.JIRA, "description", null, "Initial Description", null, "Modified Description"),
            new ChangelogItem(ChangelogItem.FieldType.CUSTOM, "Date Field", "2012-04-11T14:26+0200", "11/Apr/12 2:26 PM", "2012-04-12T14:26+0200", "12/Apr/12 2:26 PM"),
            new ChangelogItem(ChangelogItem.FieldType.JIRA, "duedate", "2012-04-12", "2012-04-12 00:00:00.0", "2012-04-13", "2012-04-13 00:00:00.0"),
            new ChangelogItem(ChangelogItem.FieldType.CUSTOM, "Radio Field", "10000", "One", "10001", "Two"),
            new ChangelogItem(ChangelogItem.FieldType.CUSTOM, "Text Field", null, "Initial text field value", null, "Modified text field value")
        ));

    verifyChangelog(iterator.next(),
        "2012-04-12T14:28:44.079+0200",
        null,
        ImmutableList.of(
            new ChangelogItem(ChangelogItem.FieldType.JIRA, "assignee", "user1", "User One", "user2", "User Two")
        ));
  }
View Full Code Here

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

    final String field = JsonParseUtil.getNestedString(json, "field");
    final String from = JsonParseUtil.getNullableString(json, "from");
    final String fromString = JsonParseUtil.getNullableString(json, "fromString");
    final String to = JsonParseUtil.getNullableString(json, "to");
    final String toString = JsonParseUtil.getNullableString(json, "toString");
    return new ChangelogItem(fieldType, field, from, fromString, to, toString);
  }
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.