Post Security Level on Issues

B_ Normann P_ Nielsen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 14, 2011

We have several Issues without Security Level set, most of them closed. This enables jira-users to see some they should not have access to...

Is there a way to "reapply" these, I would prefer not the "Edit, set field, save" method.....

An SQL to fix is would be supernice :-)

2 answers

1 accepted

0 votes
Answer accepted
B_ Normann P_ Nielsen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 18, 2011

THis will do it

{code}

mysql> select * from schemeissuesecuritylevels;
+-------+------------+-------------+--------+
| ID    | NAME       | DESCRIPTION | SCHEME |
+-------+------------+-------------+--------+
| 10000 | OnlySeeOwn |             |  10010 |
+-------+------------+-------------+--------+
1 row in set (0.00 sec)

mysql>
update jiraissue set SECURITY=10000 where project=10040 and SECURITY IS NULL;
update jiraissue set SECURITY=10000 where project=10130 and SECURITY IS NULL;
{code}
B_ Normann P_ Nielsen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 18, 2011

We need to reindex afterwards, otherwise views will stille show the issues to the user

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 14, 2011

Maybe find the appropriate level from schemeissuesecuritylevels table and set the id into the security field in jiraissue table! I haven't tried it before, so pls test.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events