module Speedflow::Plugin::Jira::Formatter::IssueFormatter
Issue formatter
Public Class Methods
to_assignee(assignee_name)
click to toggle source
Public: To assignee.
assignee_name - Assignee name.
Returns Hash of fields.
# File lib/speedflow/plugin/jira/formatter/issue_formatter.rb, line 30 def self.to_assignee(assignee_name) { 'fields' => { 'assignee' => { 'name' => assignee_name.to_s } } } end
to_create(project_key, title, issue_type_id)
click to toggle source
Public: To create issue.
project_key - Project Key. title - Issue title. issue_type_id - Issue type ID.
Returns Hash of fields.
# File lib/speedflow/plugin/jira/formatter/issue_formatter.rb, line 15 def self.to_create(project_key, title, issue_type_id) { 'fields' => { 'project' => { 'key' => project_key.to_s }, 'summary' => title.to_s, 'issuetype' => { 'id' => issue_type_id.to_s } } } end