Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation for Jira - How to use "Recent rule executions" in JQL or smart value condition?

Meital Adir
Contributor
February 4, 2021

Hi,

I have manual trigger rule that create sub tasks with Jira Automation add-on, and I'm trying to limit this rule execution to one time per issue.

How can I add this condition?

I thought to use condition to run this trigger only when Recent rule executions IS Empty 

but I don't know how to use it in JQL or smart value. 

Thanks.

Meital

 

1 answer

1 accepted

1 vote
Answer accepted
Ste Wright
Community Champion
February 4, 2021

Hi @Meital Adir 

I would consider using the Condition Related Issues Condition

If you select Sub-tasks as the related issue, you could set the condition to:

  • Are not present - so the rule should not run if there are Sub-tasks
  • All match specified JQL - if the manual trigger created a set of Sub-tasks which could be in addition to existing Sub-tasks.
    • You'd need metadata to identify the Sub-tasks created by the manual trigger - for example, you could add a label or similar to them during auto-creation, to make them easily identifiable via JQL

This should achieve your goal :)

Ste

Meital Adir
Contributor
February 4, 2021

Hi @Ste Wright 

I used the second option, exactly what I needed.

Thanks a lot!

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events