Module: JiraClient::API::Comments

Includes:
Utils
Included in:
JiraClient
Defined in:
lib/jira_client/api/comments.rb

Instance Method Summary collapse

Instance Method Details

#comment_on_issue(key, message) ⇒ Object



13
14
15
# File 'lib/jira_client/api/comments.rb', line 13

def comment_on_issue(key, message)
  object_from_response(JiraClient::Comment, :post, "/issue/#{key}/comment", {:body => message})
end

#find_issue_comments(key) ⇒ Object



8
9
10
11
# File 'lib/jira_client/api/comments.rb', line 8

def find_issue_comments(key)
  response = get("/issue/#{key}/comment")
  response[:comments].map {|c| JiraClient::Comment.from_response c}
end