I'd like to search for issues that have been created by users with an email address containing "domain.com". I tried the following JQL statement:
reporter ~ "@domain.com"
Unfortunately, this results in the following error message:
The operator '~' is not supported by the 'reporter' field.
Is there any way to work around this? I'd like to have this functionality to only trigger a webhook URL when a user with a particular domain in its email address open the issue.
Thanks for you help Dieter! I added the custom field with the free text search template and re-indexed Jira. Indeed the issues now have a 'Domain of Reporter' field populated. However, the JQL statement:
"Domain of Reporter" ~ "domain"
The operator '~' is not supported by the 'Domain of Reporter' field.
Reindexing and Restarting didn't help so i had a look in the source of the plugin and found that the searcher you can select isn't a free text searcher but indeed an exact text searcher. The source code in com.atlassian.jira.toolkit.customfield.searchers.DomainSearcher looks like
public class DomainSearcher extends ExactTextSearcher implements CustomFieldStattable ...
This won't allow ~ searches, just = searches. To support CONTAINS (~) searches it should be
public class DomainSearcher extends TextSearcher implements CustomFieldStattable
To me this looks like a bug in the plugin, at least the label "Free text ..." when selecting the searcher is misleading. You should report this in the projects issue tracker if using the exact text searcher isn't sufficient for you. It also helps to make the Atlassian support aware of this issue.
In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to have–in order to produce a reliable long-term roadmap. We're tur...
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
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs