title: How to get total hours spent on an issue for a user JIRA REST API
body: <p>I'm quite new to JIRA's REST API, I wanted to get the total time spent on an issue by a user. I tried using <code>https://jira.domain.com/rest/api/2/search?jql=assignee="my.name"</code>, and I get the <code>timespent</code> field in the returned JSON response, but it displays a value which doesn't make any sense. In this case, the <code>timespent</code> field says 62760, when the actual time spent by me on the issue is less than that, the search is returning the total time spent on the issue, rather than just by me. How can I make it show just my time?</p>
  
  <p>EDIT: Is there any way to do this with JQL, without having to do another API call for each issue?</p>