Class: RedmineRemotes::Jira::Entities::Issue

Inherits:
Avmtrf1::Jira::Entities::Issue
  • Object
show all
Defined in:
lib/redmine_remotes/jira/entities/issue.rb

Instance Method Summary collapse

Instance Method Details

#author_loginObject



37
38
39
# File 'lib/redmine_remotes/jira/entities/issue.rb', line 37

def 
  fields.try(:fetch, 'reporter').try(:fetch, 'key')
end

#codeObject



13
14
15
# File 'lib/redmine_remotes/jira/entities/issue.rb', line 13

def code
  data.fetch('key')
end

#created_onObject



17
18
19
# File 'lib/redmine_remotes/jira/entities/issue.rb', line 17

def created_on
  fields.fetch('created')
end

#descriptionObject



21
22
23
# File 'lib/redmine_remotes/jira/entities/issue.rb', line 21

def description
  fields.fetch(instance.description_field)
end

#fieldsObject



25
26
27
# File 'lib/redmine_remotes/jira/entities/issue.rb', line 25

def fields
  data.fetch('fields')
end

#human_view_urlObject



9
10
11
# File 'lib/redmine_remotes/jira/entities/issue.rb', line 9

def human_view_url
  instance.issue_human_view_url(code)
end

#status_nameObject



33
34
35
# File 'lib/redmine_remotes/jira/entities/issue.rb', line 33

def status_name
  fields.fetch('status').fetch('name')
end

#subjectObject



29
30
31
# File 'lib/redmine_remotes/jira/entities/issue.rb', line 29

def subject
  fields.fetch('summary')
end