It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Where can i find the file which includes the "pcounter" information for issues?

I want to reset my project to counter 1 because i finished testing my service desk.


Thanks for helping.

1 answer

Hi Johannes,

We have an article titled How to reset the project counter after moving issues that may help:

(info) Modifying data directly in JIRA's database is out of scope for Atlassian Support. These instructions are to help provide guidance if these changes are absolutely needed.

Always back up your data before performing any modifications to the database. If possible, test any alter, insert, update, or delete SQL commands on a staging server first.

Please note that after executing the steps below the old links (created before moving the issues) will be unavailable or pointing to the new issues with the same moved issue keys. This is very important change, since it can create a lot of confusing to users that already have links to the moved issues.


 To reset the project count you need to execute the following two steps (please substitute A in the below queries for your project key):

  1.     Reset the pcounter field from project table

    UPDATE project SET pcounter=0 WHERE pkey='A';
  2. Remove the rows referencing the old issue keys from moved_issue_key

    DELETE FROM moved_issue_key WHERE old_issue_key like 'A-%';

 After the above steps you should be capable to create issues starting from the number that was set in the pcounter field.

Hopefully that gets you the results you're looking for!



Thanks for your reply. I already found that article. Not helpful because i dont know where to put in these lines

UPDATE project SET pcounter=0 WHERE pkey='A';
DELETE FROM moved_issue_key WHERE old_issue_key like 'A-%';

 Do i need Visual Basic or some IDE with SQL?

The article does state that this is a database change, which means executing the commands in the database.

I tend to use the command line for whatever database is installed because it comes with the database and is good enough for simple database changes like this.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Service Desk

Tell us how you've implemented Change Management

Hello Community 👋, I'm a product manager at Atlassian, looking at improving change management capabilities across our products. In particular, we're looking at bridging the gap between Dev & ...

1,747 views 10 17
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you