Index: og_project.module
===================================================================
--- og_project.module	(revision 214)
+++ og_project.module	(working copy)
@@ -151,4 +151,19 @@
       }
     }
   }
+}
+
+/**
+ * Implements hook_nodeapi().
+ */
+function og_project_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
+  if ($op == 'update' && $node->type == 'project_issue' && og_is_group_post_type($node->type)) {
+    if (!in_array($node->project_issue['pid'], $node->og_groups)) {
+      // We specifically clobber all old group associations first, assuming that project is tied 1-1 with group membership.
+      unset($node->og_groups);
+      // Now, add back the current group. Note that this module runs after OG so it's OK to redo this here.
+      $node->og_groups[] = $node->project_issue['pid'];
+      og_save_ancestry($node);
+    }
+  }
 }
\ No newline at end of file
