title: Worklog entries of an JIRA-user needs to be fetched
body: <p>I have 15 usernames with me, I need to pull worklog entries of these users and manipulate it from JAVA client</p>
  
  <p>Below are the jar files am using to connect JIRA api and fetch values</p>
  
  <p><img src="https://i.stack.imgur.com/kXdav.png" alt="enter image description here"></p>
  
  <p>The code is pasted below</p>
  
  <pre><code>public class JiraConnector {
  
  JiraRestClient jira;
  
  public JiraConnector() throws URISyntaxException {
      String url = prop().getUrl();
      String userName = prop().getUser() ;
      String password = prop().getpwd() ;
      JerseyJiraRestClientFactory clientFactory = new JerseyJiraRestClientFactory();
      jira = clientFactory.createWithBasicHttpAuthentication(new URI(url),
              userName, password);
      System.out.println("Connection established to &gt;&gt; " + url);
  }
  
  public void printIssueDetails(String jiraNumber) {
      System.out.println("JiraNumber is " + jiraNumber);
      Issue issue = jira.getIssueClient().getIssue(jiraNumber, null);
  
      System.out.println(issue.getSummary());
      System.out.println(issue.getDescription());
  }
  
  public void printUserWorkLog(String userName) {
      System.out.println("user details invoked ... ");
      User user = jira.getUserClient().getUser(userName, null);
      System.out.println(user.getDisplayName());
      System.out.println(user.getEmailAddress());
  
  }
  </code></pre>
  
  <p>For any given username, am able to print his displayName and emailAdress (all those basic infos).</p>
  
  <p><strong>But I need to get the list of worklogs for the given user</strong>. Not sure how to proceed</p>