Hello!
We use JIRA v.6.4.5 and ADAPTIVIST v. 4.1.3.11
I try to make custom validator via Behavior feature...
Some details:
image2016-5-13 17:15:46.png
image2016-5-13 17:15:18.png
My Code:
import com.atlassian.jira.issue.Issue def n = getFieldById("customfield_15832") // NUMBER def tm = getFieldById("customfield_10355") // Select List def n2 = n.getValue() as Long if (n2 > 0){ tm.setRequired(true) }
But it does not work.
Please assist.
Thanks!
This needs to be attached to the field that is driving whether the other one is required or not, in this case customfield_15832. You seem to have it attached as an initialiser, which only fires once.
Hi @Jamie Echlin [Adaptavist], i am so sorry but your answer is unclear for me.
Can i expect more details of what do you mean?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In your screenshot you have set that as an initialiser. Remove the initialiser, add the field customfield_15832, whatever it's name is, and attach the script as a server-side script, in that behaviour.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.