Forums

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

Restrictions for team-managed project

Maciej Oczoś
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 22, 2024

I have set up restrictions for issue types, but these restrictions are only being applied to new issues. How can I apply these restrictions to existing issues as well? I attempted to write a script in ScriptRunner to address this, but I am unsure of the field ID required. 

Cheers

2 answers

1 vote
Nikola Perisic
Community Champion
August 22, 2024

Welcome to the community @Maciej Oczoś 

These restrictions will only apply for the new created issues. The restrictions do not apply to the existing issues.

Maciej Oczoś
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 22, 2024

Sure, we know that, but we need a way to automatically add these restrictions to the thousands of existing tasks so that we don't have to do it manually. Can you help with that?

Nikola Perisic
Community Champion
August 22, 2024

Sadly, you cannot apply restrictions to the existing issues. Each restriction is tied to both issue type and a project role. From that moment when you set the restriction only those roles will be able to see those issues. So, no, there isn't a way to apply restrictions to existing issues.

Trudy Claspill
Community Champion
August 22, 2024

@Nikola Perisic 

That is not true.

You can manually set restrictions on issues in Team Managed projects at any time by clicking on the padlock icon on the individual issue. That assumes that you have the Restrict Issue permission.

 

Like Nikola Perisic likes this
Nikola Perisic
Community Champion
August 22, 2024

@Trudy Claspill 

Thanks for the correction.

0 votes
Trudy Claspill
Community Champion
August 22, 2024

Hello @Maciej Oczoś 

Welcome to the Atlassian community.

I'm not sure if it is possible to set issue restrictions on existing Team Managed issues through ScriptRunner.

However if you need to find the name of a field, follow the guidance on this page:

https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

You may have to call the Jira REST API to make a change to the Security field.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events