You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Just starting to explore ScriptRunner.
I got a radio button custom field "Resoved on first call" (id=10219) with default value of "No". And another custom field "Resolution comment" (id=10215).
I want to hide the Resolution comment field if the Resolved on first call is = "No".
My script looks like this....
The script has red undeline on customfield_10219 and .name.
If I hover my mouse on customfield_10219, the message is... "Argument of type '"customfield_10219"' is not assignable to parameter of..."
And hover on .name, the message is... "Property 'name' does not exist on type 'string..."
What am I doing wrong? Please help.
You need to do something like this:
const checkbox = getFieldById("customfield_02133").getValue();
//will return this: