add 'assignee' to data

This commit is contained in:
tenten0213
2014-09-30 12:31:12 +00:00
parent 50a8efa9b4
commit 322e293e43
2 changed files with 20 additions and 1 deletions

View File

@@ -34,6 +34,15 @@ Post Data Example
"login": "test",
"id": 3
},
"assignee": {
"icon_url": "http://www.gravatar.com/avatar/example",
"identity_url": null,
"lastname": "user",
"firstname": "test",
"mail": "test@example.com",
"login": "test",
"id": 3
},
"priority": {
"name": "normal",
"id": 2
@@ -90,6 +99,15 @@ Post Data Example
"login": "test",
"id": 3
},
"assignee": {
"icon_url": "http://www.gravatar.com/avatar/example",
"identity_url": null,
"lastname": "user",
"firstname": "test",
"mail": "test@example.com",
"login": "test",
"id": 3
},
"private_notes": false,
"created_on": "2014-03-01T16:22:46Z",
"notes": "Fixed",

View File

@@ -23,7 +23,8 @@ class RedmineWebhook::IssueWrapper
:status => RedmineWebhook::StatusWrapper.new(@issue.status).to_hash,
:tracker => RedmineWebhook::TrackerWrapper.new(@issue.tracker).to_hash,
:priority => RedmineWebhook::PriorityWrapper.new(@issue.priority).to_hash,
:author => RedmineWebhook::AuthorWrapper.new(@issue.author).to_hash
:author => RedmineWebhook::AuthorWrapper.new(@issue.author).to_hash,
:assignee => RedmineWebhook::AuthorWrapper.new(@issue.assigned_to).to_hash
}
end
end