Class: RedmineRemotes::Jira::Entities::Issue
- Inherits:
-
Avmtrf1::Jira::Entities::Issue
- Object
- Avmtrf1::Jira::Entities::Issue
- RedmineRemotes::Jira::Entities::Issue
- Defined in:
- lib/redmine_remotes/jira/entities/issue.rb
Instance Method Summary collapse
- #author_login ⇒ Object
- #code ⇒ Object
- #created_on ⇒ Object
- #description ⇒ Object
- #fields ⇒ Object
- #human_view_url ⇒ Object
- #status_name ⇒ Object
- #subject ⇒ Object
Instance Method Details
#author_login ⇒ Object
37 38 39 |
# File 'lib/redmine_remotes/jira/entities/issue.rb', line 37 def fields.try(:fetch, 'reporter').try(:fetch, 'key') end |
#code ⇒ Object
13 14 15 |
# File 'lib/redmine_remotes/jira/entities/issue.rb', line 13 def code data.fetch('key') end |
#created_on ⇒ Object
17 18 19 |
# File 'lib/redmine_remotes/jira/entities/issue.rb', line 17 def created_on fields.fetch('created') end |
#description ⇒ Object
21 22 23 |
# File 'lib/redmine_remotes/jira/entities/issue.rb', line 21 def description fields.fetch(instance.description_field) end |
#fields ⇒ Object
25 26 27 |
# File 'lib/redmine_remotes/jira/entities/issue.rb', line 25 def fields data.fetch('fields') end |
#human_view_url ⇒ Object
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_name ⇒ Object
33 34 35 |
# File 'lib/redmine_remotes/jira/entities/issue.rb', line 33 def status_name fields.fetch('status').fetch('name') end |
#subject ⇒ Object
29 30 31 |
# File 'lib/redmine_remotes/jira/entities/issue.rb', line 29 def subject fields.fetch('summary') end |