Direct instrt into membershipbase table

Hi All, I need help with Jira 4.1, I neet to add an existing usergroup to jira user accounts (about 300). I try to do that via mysql db by simple request:

insert into membershipbase ('ID','USER_NAME','GROUP_NAME') values (21863,'tester','StaffSTART');

After commit I see the new record in membershipbase table, but I don't see this group in Jira User Browser window in tester's list.

Maybe I should insert any other table too?

1 answer

1 accepted

0 votes

Right, the standard advice here is "do not use SQL to amend a Jira database".

If you absolutely must use SQL, then you need to understand it fully and have done some preparation. The main three things here are

1. Did you increment the sequence counter?

2. Did you take a full backup?

3. Did you have Jira shut down before you ran the SQL?

Yes, of couse, we have daily backup of db. In this case I did't shutdown Jira, it is just user groups:).

But I really forgot about sequence counter! Thanks. Can you say what sequence need I use?

Doesn't matter if it's "just user groups", you need Jira shut down before you amend the database. It caches user information (as well as the sequence counters)

The sequence counter needs to be set to anything higher than the highest number you set for the ID.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,853 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot