private Issue getIssueForStack ( final String pStacktraceMD5 ) throws IOException , AuthenticationException , NotFoundException , RedmineException { final Map < String , String > parameters = new HashMap < String , String > ( ) ; parameters . put ( "project_id" , String . valueOf ( config . CHILIPROJECT_PROJECT_ID ) ) ; parameters . put ( String . format ( "cf_%d" , config . CHILIPROJECT_STACKTRACE_MD5_CF_ID ) , pStacktraceMD5 ) ; final List < Issue > results = redmineClient . getIssues ( parameters ) ; Issue issue = null ; if ( CollectionUtils . size ( results ) > 1 ) { issue = handleMultipleIssuesForSameStacktrace ( results ) ; } else if ( CollectionUtils . size ( results ) == 1 ) { issue = results . get ( 0 ) ; } return issue ; }
Search for the issue related to the given MD5 stacktrace hash .