json.(issue, :id, :subject, :project_issues_index, :description, :branch_name, :start_date, :due_date)
json.blockchain_token_num (Site.has_blockchain? && issue.project&.use_blockchain) ? issue.blockchain_token_num : nil
json.created_at issue.created_on.strftime("%Y-%m-%d %H:%M")
json.updated_at issue.updated_on.strftime("%Y-%m-%d %H:%M")
json.tags issue.show_issue_tags.each do |tag|
  json.partial! "api/v1/issues/issue_tags/simple_detail", locals: {tag: tag}
end
json.status do 
  if issue.issue_status.present? 
    json.partial! "api/v1/issues/statues/simple_detail", locals: {status: issue.issue_status}
  else
    json.nil! 
  end
end
json.priority do 
  if issue.priority.present? 
    json.partial! "api/v1/issues/issue_priorities/simple_detail", locals: {priority: issue.priority}
  else 
    json.nil!
  end
end
json.milestone do 
  if issue.version.present? 
    json.partial! "api/v1/issues/milestones/simple_detail", locals: {milestone: issue.version}
  else 
    json.nil! 
  end
end
json.author do
  json.partial! "api/v1/users/simple_user", locals: {user: issue.user}
end
json.changer do 
  json.partial! "api/v1/users/simple_user", locals: {user: issue.changer}
end
json.assigners issue.show_assigners.each do |assigner| 
  json.partial! "api/v1/users/simple_user", locals: {user: assigner}
end
json.participants issue.participants.distinct.each do |participant| 
  json.partial! "api/v1/users/simple_user", locals: {user: participant}
end
json.comment_journals_count issue.comment_journals.size
json.operate_journals_count issue.operate_journals.size
json.attachments issue.attachments.each do |attachment|
  json.partial! "api/v1/attachments/simple_detail", locals: {attachment: attachment}
end
json.pull_fixed issue.pull_attached_issues.where(fixed: true).present?
json.root_id issue.root_id
json.pm_issue_type issue.pm_issue_type
json.pm_sprint_id issue.pm_sprint_id
json.pm_project_id issue.pm_project_id
json.time_scale issue.time_scale
json.child_count issue.child_count
json.project do 
  if issue.project.present? && issue.project&.owner.present?
    json.partial! "api/v1/projects/detail", locals: {project: issue.project}
  else 
    json.nil! 
  end
end