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
Next: Root
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
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi Team,
I have field called "Source" select list (single choice) type custom field
in that i have added options A,B,C,D&Other.
Now when i select the option D and Other . A text field has to view on create and edit screen when i select the A,B,C that text field suppose to hide
Select List(Single Choice) custom-field ID-10012
Text Field Custom-field Id-10026
could you explain me guys step by step how can I achieve this .
Thanks,
Phani
Hi All,
Here is another script this one when you edit the ticket and change the option the text field gonna be empty and disappear
example: the above script when you select the option "D" or "Other" a text field should be appear will enter the text and we created ticket
after creating ticket if you want to edit the selected list filed with another options like "A or B or C" the above script still shows the text field that you have entered while you selected option "D" or "Other".
So now with this new script when you edit the selected list filed with options like "A or B or C" the text field also disappears
//customfield_12003 - Data Change Exception
//customfield_12004 - Other Description
if(getFieldById("customfield_12003").getValue().equals("D")
|| getFieldById("customfield_12003").getValue().equals("Other")){
getFieldById("customfield_12004").setHidden(false)
getFieldById("customfield_12004").setRequired(true)
}else{
getFieldById("customfield_12004").setFormValue(null)
getFieldById("customfield_12004").setRequired(false)
getFieldById("customfield_12004").setHidden(true)
}
I hope it helps sombody
Thanks,
Phani
Thanks. This helped me more than the script example from ScriptRunner!