Redmine API, list of issues with spent_hours
Added by Dilivio cat over 4 years ago
Hi,
When retrieving a list of issues I don't get the spent_hours from every issue. But when I retrieve a single issue I get the spent_hours. Is it possible to do this with a list of issues too?
Kind regards,
Dilivio
Reply
Replies (3)
RE: Redmine API, list of issues with spent_hours - Added by Bernhard Rohloff over 4 years ago
Hi Dilivio,
what exactly do you mean with "I don't get the spent_hours from every issue"? If you filter your list of issues you can add the column "spent hours" in the options section. Isn't that what you are looking for?
Kind regards,
Bernhard
RE: Redmine API, list of issues with spent_hours - Added by Dilivio cat over 4 years ago
I tried requesting with: /issues.json?status_id=*&include=spent_hours
It didn't work I don't see the spent_hours getting added.
RE: Redmine API, list of issues with spent_hours - Added by Bernhard Rohloff over 4 years ago
Oh boy... I'm a blind mole. Didn't read that you need a solution for the REST API.
Since it's not shown in the list of possible includes, I don't think it's possible to get time entries inside the issues API, yet. Perhaps the time_entries API is a better choice for you...