Skip to content

Commit a1c8c54

Browse files
authored
Added attribute exception handling for description field (#85)
1 parent 486b27b commit a1c8c54

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Change Log
22

3+
## 3.2.1
4+
- 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``.
5+
36
## 3.2.0
47
- Add new feature to ``jira.get_issue`` to allow for stripping of Jinja templating artifacts from resulting output. (Removes instances of {{ }} from results.)
58

actions/lib/formatters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def to_issue_dict(issue, include_comments=False, include_attachments=False,
3333
'key': issue.key,
3434
'url': url,
3535
'summary': issue.fields.summary,
36-
'description': issue.fields.description,
36+
'description': issue.fields.description if hasattr(issue.fields, 'description') else None,
3737
'status': issue.fields.status.name,
3838
'priority': issue.fields.priority.name if hasattr(issue.fields, 'priority') else None,
3939
'resolution': resolution,

pack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ keywords:
66
- issues
77
- ticket management
88
- project management
9-
version: 3.2.0
9+
version: 3.2.1
1010
python_versions:
1111
- "3"
1212
author: StackStorm, Inc.

0 commit comments

Comments
 (0)