Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to use JRJC in spring boot rest controller

Sohail Anwar May 22, 2019

Code I have tried is as below

@GetMapping("/projects")
List<Project> getAllProjects() throws Exception{
System.out.println("In get project");
List<Project> projectModelList = null;
JiraRestClient jiraRestClient = AuthUtility.getConnection();

ArrayList<BasicProject> projectList = Lists.newArrayList(jiraRestClient.getProjectClient().getAllProjects().claim());
Project project = null;
for (BasicProject basicProject:projectList){
System.out.println("project key "+basicProject.getKey());

project.setpKey(basicProject.getKey());
projectModelList.add(project);
}
return projectModelList;
}

it throws error as 

"message": "Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: com/atlassian/httpclient/api/factory/HttpClientOptions" 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, state of product 2026 webinar, product team report, webinar, product management, ai productivity, agile practices, team alignment, product report, atlassian learning, product strategy, discovery to delivery, survey insights

Webinar: State of Product 2026

We asked real teams how they’re coping with an industry in flux. Join this webinar to hear the research –plus tips for leveling up your team’s work.

Register now
AUG Leaders

Atlassian Community Events