Class: JIRA::Resource::Issue

Inherits:
Object
  • Object
show all
Defined in:
lib/jirify/monkey_patches/jira_issue.rb

Instance Method Summary collapse

Instance Method Details

#assign_to!(username) ⇒ Object



9
10
11
12
# File 'lib/jirify/monkey_patches/jira_issue.rb', line 9

def assign_to!(username)
  attrs = { name: username }.to_json
  client.send(:put, "#{url}/assignee", attrs)
end

#transition!(transition) ⇒ Object



4
5
6
7
# File 'lib/jirify/monkey_patches/jira_issue.rb', line 4

def transition!(transition)
  attrs = { transition: transition.id }.to_json
  client.send(:post, "#{url}/transitions", attrs)
end