Class: JiraIssues::JiraIssue

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

Instance Method Summary collapse

Instance Method Details

#to_jsonObject



20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/jira_issues/jira_issue.rb', line 20

def to_json
  {
    key: issue.key,
    type: issue.issuetype.name,
    priority: issue.priority.name,
    status: status,
    description: i.description,
    summary: issue.summary,
    assignee: issue.assignee,
    reporter: issue.reporter,
    created_date: issue.created,
    closed_date: issue.resolutiondate,
  }
end