summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/issues/show.api.rsb2
-rw-r--r--test/integration/api_test/issues_test.rb2
2 files changed, 4 insertions, 0 deletions
diff --git a/app/views/issues/show.api.rsb b/app/views/issues/show.api.rsb
index 6f23ca4b4..2c341163a 100644
--- a/app/views/issues/show.api.rsb
+++ b/app/views/issues/show.api.rsb
@@ -59,6 +59,8 @@ api.issue do
api.user(:id => journal.user_id, :name => journal.user.name) unless journal.user.nil?
api.notes journal.notes
api.created_on journal.created_on
+ api.updated_on journal.updated_on
+ api.updated_by(:id => journal.updated_by.id, :name => journal.updated_by.name) unless journal.updated_by.nil?
api.private_notes journal.private_notes
api.array :details do
journal.visible_details.each do |detail|
diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb
index 05d40647c..142dc86b8 100644
--- a/test/integration/api_test/issues_test.rb
+++ b/test/integration/api_test/issues_test.rb
@@ -242,6 +242,8 @@ class Redmine::ApiTest::IssuesTest < Redmine::ApiTest::Base
assert_select 'issue journals[type=array]' do
assert_select 'journal[id="1"]' do
+ assert_select 'updated_on', :text => Issue.find(1).journals[0].updated_on.iso8601
+ assert_select 'updated_by[id="1"][name="Redmine Admin"]'
assert_select 'private_notes', :text => 'false'
assert_select 'details[type=array]' do
assert_select 'detail[name=status_id]' do