Hi
In the Scriptrunner documentation it states
Cascading selects will return you a Map<String,Option>. In the following examples, CascadingSelect is the name of a, you guessed it, cascading select field.
Validate that both dropdowns of a cascading select are filled:
cfValues["CascadingSelect"]?.keySet()?.size() == 2
Here is my current set up
As you can see here, both are filled yet it will not work
T
Through a lot of testing I'm finding it either works too much or too little depending on what I throw at it. Spent an entire day trying to get this to work and getting a bit sick of scriptrunners skill level requirements and inconsistencies./
Any help would be appreciated
Hello @Stephen Letch
As i can see from screenshot, you forgot to change fieldname in code
In your case it will be
cfValues["Service Request Type"]?.keySet()?.size() == 2
Done that, seems to be working, now I need to see if it's going to be nice enough to only apply it to specific issue types on the same workflow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
All I want to do is
if service request, require both levels of 'Service Request type' to be filled.
if Incident require both levels of incident type to be filled
if any other issue type ignore.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if(issue.issueType.name == 'Service Request'){cfValues["Service Request Type"]?.keySet()?.size() == 2}
This just makes this happen to Incidents (bounces to the last tab and wont let it happen
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.