Hello, I've done a script in scriptrunner behavior and it works only on the opening screen.
My script is to mandatory a customfied if an another customfield has the "1 - Very high" value...very simple
def infoprio = getFieldById("customfield_11002")
def impact = getFieldById("customfield_12404").getValue()
if (impact == '1 - Very Hight'){
infoprio.setRequired(true)
}
else
infoprio.setRequired(false)
A the opening of the screen the script is OK but when I try to change the value of the impact fiedl (a list) it does not work, nothing hapens.
Is there somebody have an idea ?
Sure...my problem was that I wasn't on the good field behaviour.
The script is good but I wasn't on the customfield_12404 behaviour, the field I would like to watch.
Possibly typo of "1 - Very hight" ?
I see you asked and resolved the same question on our support portal, perhaps you could share the solution here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline 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.