Commit dfc7f8a6 by Nguyen Vo Huy Hoang

Exclude internal from subject

parent d1fc3d47
Pipeline #1633 canceled with stages
in 0 seconds
......@@ -32,12 +32,12 @@ module WorkflowReport
journals = WorkflowReportJournal.find_journal_by_issue_ids(issue_ids).to_a
target_version = root_issue.workflow_report_version&.name
subject = issues.first.project.name.gsub(/[^[:print:]]/, '')
subject = root_issue&.subject.gsub(/[^[:print:]]/, '')
next if (target_version.present? && target_version.include?("Backlog(Internal)")) || subject.include?("Internal")
result[0] << root_id
result[1] << subject
result[2] << root_issue&.subject.gsub(/[^[:print:]]/, '')
result[1] << issues.first.project.name.gsub(/[^[:print:]]/, '')
result[2] << subject
result[3] << target_version
issue_created_on = arr_issue.min_by { |i| i[:created_on] if i[:created_on].present? }
result[4].push(issue_created_on.present? ? issue_created_on.created_on&.strftime('%Y-%m-%d %H:%M:%S') : '')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment