Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,366,447
Community Members
 
Community Events
168
Community Groups

Problem with my Jira automation rule

I have a Jira automation rule that is enable for GLOABL PROJECT settings.

So, the rule is supposed to send a mail to some users based on a JQL query at a specific time.

So, the JQL query shows 20 hits. But when I looked at the rule audit, it looks like it send the mail only to like 4 issues.

Any idea why this is happening, am I missing something here. Please help.

2 answers

0 votes
Dam Community Leader Aug 29, 2022

Hi, 

to send a mail to some users based on a JQL query at a specific time

Are users emails based on issue data ? in an issue field like reporter, asisgnee, etc. If yes then maybe some data are missing on some issues... so the email cannot be sent... 

Others debug possibilities : 

  1. Maybe you didnt check the "Run a JQL search and execute actions for each issue in the query." option on the rule details... 
  2. You also need to uncheck the option "Only include issues that have changed since the last time this rule executed" I think so that it will fire an email every time the scheduled search is done, for each issue... 

 

I hope this helps a bit, let me know ;) 

Dam. 

@Dam  Yes, I had checked the option ""Only include issues that have changed since the last time this rule executed" . .  So, maybe it skipped all the issues that didn't change. 

So, does unchecking the option and running the rule again, work ?

Dam Community Leader Aug 30, 2022

You need to uncheck this option ;) cause yes the rule can skips issues if you check it in this case... @Aisha M 

0 votes
Alex Koxaras Community Leader Aug 29, 2022

Hi @Aisha M 

It would be very helpful to actually see screenshots of your rule, but I'll take a guess and say that you might have check the option "Only include issues that have changed since the last time this rule executed".

Yes, I had checked that option, do I uncheck it ? But does it matter, because this hasn't run yet for those issues (which it had skipped).

Alex Koxaras Community Leader Aug 29, 2022

This sentence says that this rule should include only issues that have changed since it last run. Now, if you rule runs NOW and you make changes afterward to only 1 issue, then the next time your rule runs, will send out only one email.

In addition, do any of your projects have issue security scheme? You have to make sure, permission wise, that the emails sent out, are being send to people/users who have the permission to view them.

Hello @Alex Koxaras Here is a screenshot of the rule. We do not have a screenshot option due to security.

 

@Alex Koxaras Does unchecking the option and running the rule again work for all the issues that are hits for the JQL ?

Alex Koxaras Community Leader Aug 29, 2022

@Aisha M can't see the screenshot. I assume that you didn't attach it.

If you uncheck the option, then the rule will run for ALL issues matching the JQL. If you do that and the rule execute and sends out email only for 4 issues, then you can investigate further problems.

Like Dam likes this

Suggest an answer

Log in or Sign up to answer