Hi All,
I have two custom fields called "cf1 and cf2" . The ask is make cf2 read only and it should update depending on cf1 single select options. Please help me to address this situation. I'm a new bee to the scripting part.
Hi @kk4065896
It needs a plugin to achieve the requirement - Scriptrunner!!
Here's an example of how to do that
def fruits = getFieldById(getFieldChanged()).getValue().toString()
getFieldById("customfield_10403").setFormValue(fruits);
getFieldById("customfield_10403").setReadOnly(true)
Let me know if you have any queries
Thanks,
Pramodh
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.