Class: Jira::Command::New
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options) ⇒ New
constructor
A new instance of New.
- #run ⇒ Object
Constructor Details
#initialize(options) ⇒ New
Returns a new instance of New.
23 24 25 |
# File 'lib/jira/commands/new.rb', line 23 def initialize() self. = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
21 22 23 |
# File 'lib/jira/commands/new.rb', line 21 def @options end |
Instance Method Details
#run ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/jira/commands/new.rb', line 27 def run return if .empty? return if project.nil? || project.empty? return if .empty? components # Select components if any after a project return if issue_type.nil? || issue_type.empty? return if assign_parent? && parent.empty? return if summary.empty? api.post 'issue', params: params, success: on_success, failure: on_failure end |