Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Distinct user from multi-user custom field in Jira Automation

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.


  • Issue 1 - Notify on Release: User A, User B
  • Issue 2 - Notify on Release: User A
  • Issue 3 - Notify on Release: User A

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!

1 answer

1 vote
Alex Koxaras Community Leader Sep 07, 2022

Hi @Cornelius Schiffer 

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:

Bildschirmfoto 2022-09-07 um 12.26.57.png

The first log shows the users, the second only the static text. My new variable "distinctUsersToNotify" seems to be empty.

Suggest an answer

Log in or Sign up to answer
Site Admin

Atlassian Community Events