Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I bulk change issue comment security with a sql command?

ewhite November 23, 2016

I am on the verge of allowing our customers to access their issues in our JIRA instance.

But I need to set all existing comments to private before doing so.

Could anyone point me in the right direction to accomplishing this directly in PostgreSQL via sql?

1 answer

1 accepted

1 vote
Answer accepted
mlassau_atlassian
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.
November 27, 2016

Usual caveats apply as to hacking your data directly:

  • not supported - act with care
  • do a DB backup first
  • blah blah

JIRA comments are stored in the jiraaction DB table.
You will see a column named "actiontype" and you will probably find that all rows have a value of "comment".
(Worklogs used to be in there too, but got moved).

Comments can be secured via a group or a project role (depending on global settings).
There is a column called "actionlevel" for when its a group and another called "rolelevel" for project role.
If both these are NULL, then no security, otherwise you only set one or the other.

After running your SQL you will need to do a reindex in order for the JQL searches to secure your searches accordingly. 

 

ewhite December 9, 2016

Just getting around to doing this work.  This information is exactly what I needed to know.

Worked beautifully.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira cloud certification, managing jira projects, jira project administration, jira cloud exam, atlassian certification, agile project management, jira workflows, jira permissions, jira training, jira cloud skills, atlassian learning

Become a Certified Jira Service Project Expert 🦸🏻‍♂️

Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.

Get Certified! ✍️
AUG Leaders

Atlassian Community Events