24 lines
764 B
Ruby
24 lines
764 B
Ruby
class Api::V1::PmIssuesController < ApplicationController
|
|
before_action :require_login, except: [:index, :show]
|
|
|
|
def create
|
|
project = Project.new( id: 0, user_id: current_user.id, name:"pm_mm", identifier:"pm_mm" )
|
|
@object_result = Api::V1::Issues::CreateService.call(project, issue_params, current_user)
|
|
end
|
|
|
|
private
|
|
def issue_params
|
|
params.permit(
|
|
:status_id, :priority_id, :milestone_id,
|
|
:branch_name, :start_date, :due_date,
|
|
:subject, :description, :blockchain_token_num,
|
|
:pm_project_id, :pm_sprint_id,
|
|
:issue_tag_ids => [],
|
|
:assigner_ids => [],
|
|
:attachment_ids => [],
|
|
:receivers_login => []
|
|
)
|
|
end
|
|
|
|
end
|