@ Override public Epic getEpic ( String epicKey , Map < String , Epic > epicMap ) { try { String url = featureSettings . getJiraBaseUrl ( ) + ( featureSettings . getJiraBaseUrl ( ) . endsWith ( "/" ) ? "" : "/" ) + String . format ( EPIC_REST_SUFFIX , epicKey ) ; ResponseEntity < String > responseEntity = makeRestCall ( url ) ; String responseBody = responseEntity . getBody ( ) ; JSONObject issue = ( JSONObject ) parser . parse ( responseBody ) ; if ( issue == null ) { return null ; } return saveEpic ( issue , epicMap , false ) ; } catch ( ParseException pe ) { LOGGER . error ( "Parser exception when parsing teams" , pe ) ; } catch ( HygieiaException e ) { LOGGER . error ( "Error in calling JIRA API" , e ) ; } return null ; }
Get Epic using Jira API