Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Jira Srtucture Contains function not working (as expected ?)

larry joseph April 26, 2024

When I use the CONTAINS function in structure with a hard coded array as the list to check against it works, but when the array is from a function it doesn't.  My goal is to build an array (array2) that does not have any of the elements from another array (array1)

Ex:

array1 = A, B, C

array2 = if the values being checked are A, B, D, then I only want the value of D to be in the array2 (since A and B were in array1)

 

This works

values#subtree{if field1 = somevalue and contains(array ("A", "B", "C"), component) = 0 : component}  ---> returns just D

 

This does not work
values#subtree{if field1 = somevalue and contains(values#subtree{if field2 = someothervalue : component}, component) = 0 : component}  --> returns A, B, D

 

Is this a bug in the Contains function?  Is there another way to do this?

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
larry joseph April 26, 2024

I've verified that the inner aggregate function values#subtree{if field2 = someothervalue : component} returns the correct values.

TAGS
AUG Leaders

Atlassian Community Events