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.
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'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
odd.... now its telling me there is no issuenum table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
for security level consult this query
select * from jiraissue ji
inner join schemeissuesecuritylevels sc on ji.security = sc.id
where ji.project =10900;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.