Hello, I have written a script file on Automation that if one of the fields of the project (Project Status) is updated, then the permission scheme of the project will also change. But it does not work :(
Could you Help me?
I think you've got two problems here.
The obvious one is that your code, if it were to work, would trash your project. The "remove schemes" call removes all schemes.
The less obvious one is that admin actions such as changing schemes are protected, limited to those who have admin rights. Your script is not being run by an admin.
I'd also want to question why you're doing this - a reconfiguration of a project is not something you would usually want to automate.
Thanks for your reply, Ops I didn't know the "delete plans" call deletes all plans, what should I do? Is there an alternative class?
And for your last question, we have many projects whose status has been changed by the project manager, not Jira Admin, we want to automatically track and update all projects based on status.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.
Register nowOnline 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.