Hi there,
I have a set of Components, say
Component a
Component b
Component c
Component 1
Component 2
From the Components a, b, c exactly 1 has to be provided, otherwise I need an error. From Components 1, 2 they can be set, but not necessarily.
To start with, it would already be good if a validation works to check that one of the above components are provided.
Would be great to get help on this issue as I just do not have a clue about how the script runner stuff works and also cannot find any useful documentation.
Thanks in advance!
Samuel
This already helped, but is not the full solution:
issue.components*.name.contains('a') ||
issue.components*.name.contains('b') ||
issue.components*.name.contains('c')
I'd like to know it,too !!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Additional info, I tried the following, but no idea how I can write an "OR":
issue.components*.name.contains('a')
issue.components*.name.contains('b')
issue.components*.name.contains('c')
Now only works if all 3 are present which is not the idea..
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.