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
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,097 views 4 9
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