Hello Community,
I have custom fields that are set Globally.
I want to change them to specific projects.
i have an array of project keys that i want to run a script that will update the CF context.
for example, the array or project keys to set: [WHMKUK, WHH, WEBS]
is this possible via script runner in jira DC?
Hi @arielei
I have a sample script which I have tested on Jira DC version 10.7.4 with ScriptRunner version 9.24.0 and this script can restrict global custom field contexts for specified fields to a set of specified project keys.
The script can be seen here and I would advise that you take a clone of your instance and test this script to validate it works as expected on a test instance before you run it in production.
You can test this script and use it as a reference guide to help create the script that you need to achieve your requirements.
I hope this helps.
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.