Class: KiYoutrack::IssueFilter
- Inherits:
-
Object
- Object
- KiYoutrack::IssueFilter
- Defined in:
- lib/ki_youtrack/issue_filter.rb
Class Method Summary collapse
Class Method Details
.filter(data) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/ki_youtrack/issue_filter.rb', line 5 def self.filter(data) new_data = {} new_data['id']= data['id'] data['field'].each do |field| new_data[field['name']] = field['value'] end # TODO - this should not know about the config here! # If filter needs data, it should be passed in! config = Kiseru::Config[:ki_youtrack] subdomain = config.read('subdomain') ssl = config.read('ssl') new_data['issue_url'] = Session.url(subdomain, ssl) + '/youtrack/issues/' + data['id'] new_data['ki_type'] = 'youtrack_issue' new_data end |