Originally asked by Jamie McCulloch on 08 September 2020 (original question)
Exalate seems to fit all the use cases I need it for, but one quick query though, when I comment tagging someone (on a cloud site) then the comment is synced to the server side, the account ID appears instead of the name. This makes sense with GDPR etc. but I notice that we can use user mapping for the worklogs being synced to get around this.
Is there a way we can do this for the body of comments?
Hi Francis, yeah the comments go over fine with the correct user, the problem comes from trying to tag a user in the comment itself, i.e. “@Jamie McCulloch would you be able to look into this” becomes “accountId:xyz12341 would you be able to look into this”.
Which should give you a clue how to address this one.
Jamie McCulloch commented on 13 September 2020
Ah that looks perfect, thanks a lot!
Jamie McCulloch commented on 15 September 2020
Thank you for this! I have tried this and after some trial and error got it working well for two accounts, but not for others. I edited the script to remove “atlassianid:” from the prefix, and this worked. However whenever the account ID contains a dash or colon (i.e. 557058:fdadsf-d5b7-4e85-b50c-ffdas43123). Is this due to the regex taking a word up to a punctuation mark and then trying to search for that?
Francis Martens (Exalate) commented on 15 September 2020
Probably. People who understand RegEx have all a Noble Price of mathematics, and I’m certainly not one of them.
I’m using https://regex101.com/ to test the regex. It is pretty good at explaining how the regex is mapped to the input.