issueClient.deleteIssue(issueKey, false).claim();
}
@Test
public void testTransitionWithNumericCustomFieldAndInteger() throws Exception {
final Issue issue = client.getIssueClient().getIssue("TST-1").claim();
assertNull(issue.getField(NUMERIC_CUSTOMFIELD_ID).getValue());
final Iterable<Transition> transitions = client.getIssueClient().getTransitions(issue).claim();
Transition transitionFound = TestUtil.getTransitionByName(transitions, "Estimate");
assertNotNull(transitionFound);
assertTrue(Iterables.contains(transitionFound.getFields(),
new Transition.Field(NUMERIC_CUSTOMFIELD_ID, false,
IntegrationTestUtil.TESTING_JIRA_5_OR_NEWER ? NUMERIC_CUSTOMFIELD_TYPE_V5 : NUMERIC_CUSTOMFIELD_TYPE)));
final double newValue = 123;
final FieldInput fieldInput = new FieldInput(NUMERIC_CUSTOMFIELD_ID, newValue);
client.getIssueClient().transition(issue.getTransitionsUri(), new TransitionInput(transitionFound.getId(), Arrays
.asList(fieldInput),
Comment.valueOf("My test comment"))).claim();
final Issue changedIssue = client.getIssueClient().getIssue("TST-1").claim();
assertEquals(newValue, changedIssue.getField(NUMERIC_CUSTOMFIELD_ID).getValue());
}