Hi,
Is there any way to search for a certain email address domain?
E.g. assignee ~ "@domain.com" or reporter ~ "@domain.com"
Can anyone advise?
No this is not possible. Since the email address is not a value within the issues them selfs, or a field, but rather related to a user, you can not use it for issues queries, unless the username and email address are the same.
Alright thanks. Would have been nice to be able to do this?
Warren, in addition Mick's answer, the assignee and reporter fields do not support the 'contains:~' operator, as they're not free text fields.
You might want to try creating a custom free text field to be filled with the email addresses of the issue participants, and that would be searchable.
Hope it helps.
Thanks Jeison, I knew the assignee and reporter fields do not support the 'contains:~' operator, I was just using it as and example, hence the "E.g". None the less, thank you for your help.
Add a scripted field (and call it any name) (https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner) and add this code:
return issue.reporter.emailAddress.split("@)[1];
Then search using this new field.
Hi Renjith,
Once I add this field, in the search do I search for the domain after @, so excluding the "@"?
Thanks, Will give this a try.
Where and how do I search once i've created this scripted field?
Can you comment @Renjith?
Absolutely. This question was asked back in 2013, do we have any update for it today? (I need to search for issues assigned to people with email addresses containing "@domain."
Thanks!
7 years later and I would also love to do this. Not only by domain - but also by email. Eg JQL suggests assignee or reporter name and email but populates the user account id.
Any update or workaround on this from Atlassian?
Hello,
We are now in 2024. Is there a answer on this question today? Would like to have the possibilty.
It looks like you're new here. Sign in or register to get started.