| |
@@ -740,10 +740,13 @@
|
| |
except ValueError:
|
| |
# for python 2.7
|
| |
closed_status = (filter(lambda d: "transition" in d, issue.downstream.get('updates', {})))[0]['transition']
|
| |
-
|
| |
if closed_status is not True and issue.status == 'Closed' \
|
| |
and existing.fields.status.name.upper() != closed_status.upper():
|
| |
- # Now we need to update the status of the JIRA issue\
|
| |
+ # Now we need to update the status of the JIRA issue
|
| |
+ # First add a comment indicating the change (in case it doesn't go through)
|
| |
+ hyperlink = f"[Upstream issue|{issue.url}]"
|
| |
+ comment_body = f"{hyperlink} closed. Attempting transition to {closed_status}."
|
| |
+ client.add_comment(existing, comment_body)
|
| |
# Ensure that closed_status is a valid choice
|
| |
# Find all possible transactions (i.e. change states) we could `do
|
| |
_change_status(client, existing, closed_status, issue)
|
| |
Address' part of issue #102