diff --git a/CHANGES.md b/CHANGES.md index abf0794..9bc555a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,8 @@ # Change Log +## 3.2.1 +- Fixed the deafult attribute invocation for jira field ``description`` to verify that the attribute exists first. If ``description`` attribute does not exist then return ``null``. + ## 3.2.0 - Add new feature to ``jira.get_issue`` to allow for stripping of Jinja templating artifacts from resulting output. (Removes instances of {{ }} from results.) diff --git a/actions/lib/formatters.py b/actions/lib/formatters.py index dc2d81e..05b92fd 100644 --- a/actions/lib/formatters.py +++ b/actions/lib/formatters.py @@ -33,7 +33,7 @@ def to_issue_dict(issue, include_comments=False, include_attachments=False, 'key': issue.key, 'url': url, 'summary': issue.fields.summary, - 'description': issue.fields.description, + 'description': issue.fields.description if hasattr(issue.fields, 'description') else None, 'status': issue.fields.status.name, 'priority': issue.fields.priority.name if hasattr(issue.fields, 'priority') else None, 'resolution': resolution, diff --git a/pack.yaml b/pack.yaml index 83b2a4f..a15da9b 100644 --- a/pack.yaml +++ b/pack.yaml @@ -6,7 +6,7 @@ keywords: - issues - ticket management - project management -version: 3.2.0 +version: 3.2.1 python_versions: - "3" author: StackStorm, Inc.