Estimated time to read: 3 minutes
TL;DR: The current smart value list functions do not provide a way to find common items between two different lists. You may solve that using a dynamic regular expression with the match() function.
Let's assume you have two lists of work items with assignees from Lookup Work Items results, and you want to find common assignees. Perhaps these are people doing work on multiple teams and you need visibility when they have active work on both teams.
When you just need the common values, I recommend using the match() function with a dynamic regular expression. For example:
What if there are more than two lists? Hint: repeat the technique, progressively reducing the match results.
What if you wanted the all the values in one list which are not in the other list? There are several ways to do this, although one reliable method is:
Please note well: these methods assume the lists contain no special characters or regular expression tokens. When that happens, extra steps are needed to add escaping to the search expression.
I hope this article helps improve your automation "bag of tricks". Please let me know your feedback and how you might use this technique.
Happy rule writing!
Bill Sheboy
agile coach, idling
None
Atlassian Community
3,003 accepted answers
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.
1 comment