Hi all,
I am creating an automation that will send emails to all interested users when a version is released. There is a custom issue field "Notify on Release" that can contain multiple users per issue who should be notified.
I fetched all issues where this custom field is not empty and now need to get a list of distinct users to be notified. If my custom field contained only a single user, I could simply assign this to a new variable: `{{lookupIssues.Notify on Release.distinct}}`, but since my custom field can contain multiple users this will not work.
Example:
This would result in the following list: (User A, User B), User A.
Is there a way to combine all elements in a single list first and then run distinct on them?
Thank you in advance!
Can you try to create a new variable after that lookupissues and assign the value of {{lookupIssues.Notify on Release.distinct}}. Then call the distinct method on the new variable. Log it and see what this yields.
Hi Alex,
thank you for the answer!
I tried it like this:
The first log shows the users, the second only the static text. My new variable "distinctUsersToNotify" seems to be empty.
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.