-
Notifications
You must be signed in to change notification settings - Fork 15
Description
The update for a synced comment does not propagate to Shotgun correctly. The reason for this being that the body is malformed based on the sg-jira-bridge's expectation.
This error is not one of the known issues (in fact, it specifically mentions it should be supported):
Shotgun Notes contain a subject and content, while Jira Comments have only a body. When syncing Notes from Shotgun to Jira, a special formatting is used to mimic the structure that Shotgun uses. Updates to a Comment in Jira must retain this formatting otherwise the Comment will not sync back to Shotgun.
The issue becomes apparent if you compare the regex in source compared to what message comes in. The webapp gives the following warning:
2020-05-27 15:07:40,015 WARNING [note_comment_handler] Unable to process Jira Comment comment_updated event. Invalid Jira Comment body format. Unable to parse Shotgun subject and content from '{panel:bgColor=#deebff}
Kevin Chi Yan's Note on TestAssetTesting out Shotgun comment replies / edits from Jira.
Edit from Jira (Try 2)
{panel}'
The regex that the handler is comparing to is r"\{panel:title=([^\}]*)\}(.*)\{panel\}" which makes sense since it's posted with the title as well. I guess in some update Jira now converts the title attribute into the bold markup above. (See: https://github.com/shotgunsoftware/sg-jira-bridge/blob/master/sg_jira/handlers/note_comment_handler.py#L95)
What I'm not sure of is if this is only a problem in certain versions (or certain settings within Jira?)