Project

General

Profile

Problem creating time enrtries using REST

Added by Lennard Hunfeld over 14 years ago

Hi,

im trying to create time entries usign the REST Api. This code

Timelog.new(:issue_id => params[:task], :time_entry=>{:comments => messageEntry, :activity_id => @redmine_dev_activity , :hours => params[:spent_time]})

works fine and gives me something like this:
<timelog>
<time-entry>
<comments>TestLog</comments>
<activity-id nil="true"></activity-id>
<hours type="integer">1</hours>
</time-entry>
<issue-id type="integer">1</issue-id>
</timelog>

But where to post it? issues.xml?timelogs.xml?issues/1.xml? or something like that?
Or isn't it working right now, so i won't find a way.

Greetz,
Lennard