Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

Olia I'm New Here Dec 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 Dec 30, 2021

Hi @Olia ,

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

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

Ollie Guan Community Leader Dec 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
TAGS
Community showcase
Published in Jira

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

55 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you