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.
I have a required field called "Release Type" and when it is set to "Hardware" I want to have the SKU(s) field required. When it is set to anything else, I want the SKU(s) field optional and read only or if possible hidden. Here is the script I have so far but it isn't working at all. I also want the asterisk to show against skus as well if possible.
Hi @Joe Harmon
You use getFieldById but you provided cf name. Use getFieldByName or provide ID of the field.
def skusField = getFieldById("SKU(s)")
Also, use formField.setHelpText() to see the values in UI for testing.
Ex; releaseTypeField.setHelpText(releaseTypeStatus)
For further info:
That's what it was. I saw an example from someone and that is what they used and had the name on it. I was confused by that as I figured it had to the be the customfieldID_xxxx. Oh well, thanks for helping me with it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Glad to hear that, you are welcome!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried to add a second field with the same context as the first and it only worked on the first. You ever heard of that before?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.