Special case for worklog IDs
1 files changed, 6 insertions(+), 1 deletions(-)

M googlechat.groovy
M googlechat.groovy +6 -1
@@ 168,7 168,12 @@ class SimpleChatMessage implements ChatM
 				//if (field == "status") return "";
 				def oldval = ci.getString("oldstring");
 				def newval = ci.getString("newstring");
-				keyValue(field, newval + (oldval ? " (was: ${oldval})" : ""));
+				if (field == "WorklogId") { 
+					// worklog ID is weird. Only the 'old' value is set
+					keyValue(field, oldval);
+				} else {
+					keyValue(field, newval + (oldval ? " (was: ${oldval})" : ""));
+				}
 			}
 			.join("\n")
 		}