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

Filters in Automation Rules

I am trying to use saved filters in Automation rules... I can get rules to meet conditions of normal saved filters, but cannot get them to work with filters created with ScriptRunner Enhanced Search.

I'm assuming it is a timing thing... Since scriptrunner turns sub queries into regular jql, I think the automation rule is checking before that takes place. 

Has anyone had luck with running ScriptRunner filters in Automation Rules?

Simple recreate:

  1. Saved filter named testRegularFilter: resolution is empty (or any normal jql)
  2. Saved filter named testSRFilter: project= "projectName" AND resolution is empty AND issueFunction in linkedIssuesOf("resolution is not empty") AND NOT issueFunction in linkedIssuesOf("resolution is empty") Translation: Unresolved issues where all linked issues are resolved
  3. New Queue named testQueue: filter = testSRFilter (works great as long as filter does not return issues from projects that the queue is not in)
  4. New Automation Rule: When issue is created -> condition, issue matches, filter = testRegularFilter -> alert user (works great, so regular filters in automation rules work)
  5. New Automation Rule: When linked issue is transitioned -> condition, issue matches, filter = testSRFilter -> alert user (fails to meet condition, so scriptrunner didn't update filter before condition check is assumed)

 

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Service Desk

Tell us how you've implemented Change Management

Hello Community 👋, I'm a product manager at Atlassian, looking at improving change management capabilities across our products. In particular, we're looking at bridging the gap between Dev & ...

270 views 0 5
Join discussion

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