简体   繁体   English

在电子邮件ID JIRA上进行JQL搜索

[英]JQL search on email id JIRA

How do i list the users whose email address is like @gmail.com 如何列出电子邮件地址为@ gmail.com的用户

SQL Query equivalent to it : 相当于它的SQL查询:

select a.user_name,a.email_address from cwd_user a where a.email_address like '%@gmail.com%'; 从cwd_user中选择一个用户名,一个电子邮件地址,其中一个电子邮件地址,例如'%@gmail.com%';

Need a JQL query similar to that, as i am trying to create a filter to list all users part of email address (@gmail.com) 需要类似的JQL查询,因为我试图创建一个过滤器以列出电子邮件地址(@ gmail.com)的所有用户

The result of a JQL query is always a set of issues, not a set of users, so you cannot accomplish what you want with JQL. JQL查询的结果始终是一组问题,而不是一组用户,因此您无法使用JQL完成所需的操作。

If you meant that you were looking for issues whose reporter or assignee fell within a certain email domain, look at the JIRA Toolkit Plugin and the custom fields you can then add for Domain of Reporter or Domain of Assignee. 如果您要查找的是报告人或受让人属于某个电子邮件域的问题,请查看JIRA Toolkit插件 ,然后可以为“报告者域”或“受让人域”添加自定义字段。 You can then search those custom fields directly with JQL (after doing a reindex). 然后,您可以直接使用JQL搜索这些自定义字段(执行重新索引后)。

If you are truly just looking for users and not issues, but you are willing to loosen up your question from requiring JQL, you can also try the users REST API to search by substring. 如果您确实只是在寻找用户而不是问题,但是您愿意从要求JQL松开您的问题,那么也可以尝试使用用户REST API来按子字符串进行搜索。 However, this will produce results in JSON, and it's a straight substring match against a bunch of fields, so you'll have to postprocess the results to make sure you're only getting users within a certain domain. 但是,这将在JSON中产生结果,并且它是一堆直接匹配多个字段的子字符串,因此您必须对结果进行后处理,以确保仅在特定域内获得用户。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM