Module: ActiveProject::Adapters::Jira::AttributeNormalizer
- Included in:
- ActiveProject::Adapters::JiraAdapter
- Defined in:
- lib/active_project/adapters/jira/attribute_normalizer.rb
Instance Method Summary collapse
-
#normalize_issue_attrs(attrs) ⇒ Object
Normalise Issue attributes before they hit Jira’s REST API.
Instance Method Details
#normalize_issue_attrs(attrs) ⇒ Object
Normalise Issue attributes before they hit Jira’s REST API
8 9 10 11 12 |
# File 'lib/active_project/adapters/jira/attribute_normalizer.rb', line 8 def normalize_issue_attrs(attrs) attrs = attrs.dup attrs[:summary] = attrs.delete(:title) if attrs.key?(:title) attrs end |