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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

55 views 1 0
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