How can I change the security level on closed issues?

I want to add another group of (external) users to one of our Jira projects. Before I would like to change the security level of all existing issues within the project from "None" to some more restricted level. A bulk-change does not work because there are issues with closed status.

How can I change the security level even on issues with closed status? If I have to re-open items, maby this can be done on database SQL level?

1 answer

1 accepted

Hi Tobias,

You can use JJupin for this kind of task, here is a demo snippet(run it from SIL Gadget):

// let's get some issues via JQL
string [] issueKeys = selectIssues("project = ABC"); 

for (string key in issueKeys) {
  #{key.Security Level} = "Internal";
}

You can do a lot of things with JJupin and its Simple Issue Language(SIL), this is just an easy task. Give it a try :)

Best regards,

Silviu

Interesting, I didn't think that would work because it needs to bypass the "do not edit me" flag on the closed status.

You can do it without any scripting though - edit the workflow, and remove the "do not edit" flag from the status. Or add a transition from "closed" to "closed" and make it go through a screen that includes "security level" (restrict the transition to admins or appropriate people) or even just sets it in a post-function.

Will this cause the change to be logged in the issue history?

Will this cause notification mails to be sent out?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

216 views 1 18
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