Change author name within DB

zunairf July 12, 2019

Since I couldn't find any other way to change the author of the comments.

I'd like to figure out how we can do that in database.

 

Why? - Duplicate username issues with multiple domain alias.
So we are looking to change all comments that has x@abc.com(internal user) to x (external user)

 

We have a solution going forward, but we'd like to clean up the existing data.

 

I hope someone can help.

 

Tried so far:

  • Groovy script - doesn't have author edit method
  • REST api - does not change if you put author in the comment update request
  • jiraaction table - changes the user name visually in UI on the comments but doesn't actually connects it to the actual user (when you hover on the name, it doesn't show anything, and does not show in user's feed)

Haven't tried:

  • Export xml data then change comments author and import.

 

Edit 1:

I found the weirdest thing in db.

Looking at a comment, the author on the comment does not match what's in jiraaction. 


To make sure I was on same row in DB, I even tried updating the comment in the UI, and it did change the actionbody and updateAuthor. 

 

Now I am just lost :|

1 answer

0 votes
Tom Lister
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 24, 2020

Suggest an answer

Log in or Sign up to answer