we have a number of custom fields and would like to restrict the field context for these fields only to a certain type/category of projects. As these projects are created semiautomated it would also be necessary to assign the the new projects automated during the creation process (based on project category) to the field context.
I tried this within a script listener (Scriptrunner). I can read the ProjectContexts and I also can modify them respectively, but adding does not work as the collection is unmodifiable. Any ideas? Any example ?