Error Primary Key Worklog Database MySQL


I'm working on my database MySQL of Jira...

In my worklog tables I have all the Log Work that I've add from the issues.

If I add a line (after stop the service and all the other tings hthat I have to do...) manually on the db, when I insert another LogWork from Jira, the ID on the worklog table of the issue, restart from a different value of hundred..



my last ID is 10559

I add manually 10560

next Log Work on Jira restart ID from 10600


In the sequence_value_item table, I can find in the "Worklog" this number 10600...

First question: how Jira calculate this number and where???

Second question: I created a script for set this value like "(ID of the worklog)+1". I add manually an issue, and after I make a Log Work from Jira, and I have an error like this...

Where is saved this value of PrimaryKey, too??????

Best regards,


3 answers

1 accepted

0 votes
Accepted answer


This is the same question you asked the other day.

Is there a Service API that use JIRA+Tempo to store the last value of the ID of the Worklog table in the db?

Where is and how can I change it??



Only part of the question is Duplicate, not all....


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,295 views 5 10
Read article

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