如何定制一个筛选器,能够查询所有待当前用户审批的Issue清单

Olia December 30, 2021

【已尝试的办法】

创建筛选器,JQL语句为:issue in waitApprovalForMe()

【存在的问题】

以下场景下Pendig在当前用户的Issue单,用以上JQL却查不出来:

1. 创建一个Issue后,签给当前用户审批,当前用户审批PASS

2. 之后因某种实际业务原因,Issue单再次重新走给当前用户审批,即Issue单再次Pending在当前用户

///经验证:对于以上曾经Approved过后来又重新Pending在当前用户的Issue单,用JQL语句:issue in waitApprovalForMe()查不出来.

【希望求助内容】

如何创建筛选器,可以查询出所有待当前用户审批的Issue单,不论Issue是不是曾经被当前用户审批Pass过,只要现在是Pending在该用户这里,就需要查询出来.

 

1 answer

0 votes
Ollie Guan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 30, 2021

Hi @Olia ,

waitApprovalForMe()这个函数应该是你们自定义的吧,或者通过任何第三方的插件?

据我所知Jira Software本身并没有这个JQL的查询方法,用的DSD的WorkflowWise-Jira?

Ollie Guan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 30, 2021

如果是使用的插件,建议咨询插件的供应商;

如果使用Jira源生的JQL,可以试试如下的方法:

(assignee was currentuser() and status changed FROM 'to do' ) or (assignee = currentuser() and status = 'to do')

具体的查询条件请根据需求自行调整。

Suggest an answer

Log in or Sign up to answer