/** The username for authentication into a private Trac installation. */
private String tracUser;
private Issue createIssue( Object[] ticketObj )
{
Issue issue = new Issue();
issue.setId( String.valueOf( ticketObj[0] ) );
issue.setKey( String.valueOf( ticketObj[0] ) );
issue.setLink( getUrl() + "/ticket/" + String.valueOf( ticketObj[0] ) );
issue.setCreated( parseDate( String.valueOf( ticketObj[1] ) ) );
issue.setUpdated( parseDate( String.valueOf( ticketObj[2] ) ) );
Map attributes = (Map) ticketObj[3];
issue.setType( (String) attributes.get( "type" ) );
issue.setSummary( (String) attributes.get( "summary" ) );
issue.setStatus( (String) attributes.get( "status" ) );
issue.setResolution( (String) attributes.get( "resolution" ) );
issue.setAssignee( (String) attributes.get( "owner" ) );
issue.addFixVersion( (String) attributes.get( "milestone" ) );
issue.setPriority( (String) attributes.get( "priority" ) );
issue.setReporter( (String) attributes.get( "reporter" ) );
issue.addComponent( (String) attributes.get( "component" ) );
return issue;
}