2013-04-12 17:52:56 +01:00
|
|
|
json.number issue.serial_id
|
|
|
|
json.(issue, :title, :status)
|
2013-07-17 13:35:36 +01:00
|
|
|
json.labels issue.labels do |label|
|
2014-01-21 04:51:49 +00:00
|
|
|
json.partial! 'label', label: label
|
2013-04-12 17:52:56 +01:00
|
|
|
end
|
2013-07-17 13:35:36 +01:00
|
|
|
json.assignee do
|
2014-01-21 04:51:49 +00:00
|
|
|
json.partial! 'api/v1/shared/member', member: issue.assignee
|
2013-04-12 17:52:56 +01:00
|
|
|
end if issue.assignee
|
|
|
|
|
2014-01-21 04:51:49 +00:00
|
|
|
json.url api_v1_project_issue_path(issue.project.id, issue.serial_id, format: :json)
|
2013-04-12 17:52:56 +01:00
|
|
|
|