I have 2 lists eg ListA[1,2,3,4] and ListB[2,3]. I need to compare both and create a new list with the values that are not found in ListB (i.e. ListC[1,4]).
You might try doing it like this:
def l1 = ["1", "2", "3", "4"]
def l2 = ["2", "3"]
def commons = l1.intersect(l2)
def difference = l1.plus(l2)
See image for result.
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
One of the newest products in the Microsoft family - Microsoft Teams, is a chat-based hub for teamwork that integrates all the people, content, and tools your team needs to be more engaged and ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG