Team,
i have two fields called acceptance criteria and story acceptance criteria both are text fields. I need to add behavior in script runner that when i enter some value in acceptance criteria then only story acceptance criteria should be enabled while creating issue in Jira cloud.
i wrote below code.
Hi,
In the cloud, you must reference custom fields by their ID and not names, so you will need to reference these fields using the getFieldById Method.
Also, then you can refer to the example we have here, which shows how to apply an action to a field when a value is changed.
You will be able to use this as a reference guide to help create the script that you require, ensuring you check when the acceptanceCriteriaField is not empty and then if so enable the storyAcceptanceCriteriaField.
If you still need further assistance with this script, can I please ask you to raise this issue as a support ticket here so that our support team can help investigate this and help you with writing the script.
I hope this information helps.
Regards,
Kristian
Online 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.