How do I change or check the security level of an issue in the database itself?

I was applying a new issue security scheme and the server locked up. I had to restart jira before it was done and I can't see an issue any more. I tried the intregity checker and it came up as everything is good. I am literally a member of every security role and group. We are running a postgres DB. I would like to check the issue in the DB to see what excatly is going on. I am fairly comptent with DB queries but I would never call myself a DBA.

1 answer

1 accepted

Here's a sample:

select * from schemeissuesecuritylevels where id=(select security from jiraissue where project=10003 and issuenum=1)

issuenum is the number part of the issue key i.e. for key MAR-1 number is 1 and you have to find the id of the project - i.e.

select id from project where pkey='MKT'

Thanks for the help.

odd.... now its telling me there is no issuenum table.

You mean issuenum column ? What DB are you running on? Please paste the whole error message, probably there is something that should be tuned in the query to work on your database. I've used the JIRA Home Directory and DB browser to test the query and it works.

Here is the error....

ERROR: column "issuenum" does not exist

LINE 1: ...t security from jiraissue where project=11410 and issuenum=9...


********** Error **********

ERROR: column "issuenum" does not exist

SQL state: 42703

Character: 106

We are runnig jira standalone 5.2.6 on postgres. Now I remeber that I used pkey in stead and it worked fine after that. Thanks for the pro tio on the plugin. That will save me some time in the future.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

685 views 6 13
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