public Epic createEpic ( Object groupIdOrPath , String title , String labels , String description , Date startDate , Date endDate ) throws GitLabApiException { Form formData = new GitLabApiForm ( ) . withParam ( "title" , title , true ) . withParam ( "labels" , labels ) . withParam ( "description" , description ) . withParam ( "start_date" , startDate ) . withParam ( "end_date" , endDate ) ; Response response = post ( Response . Status . CREATED , formData . asMap ( ) , "groups" , getGroupIdOrPath ( groupIdOrPath ) , "epics" ) ; return ( response . readEntity ( Epic . class ) ) ; }
Creates a new epic .