Send reminder emails to issue.reporter of they own blocked by customer tickets

Mykola July 24, 2023

Hello everyone,

I am using Jira Server v8.20.10

My colleagues get too many reminder emails about different issues, so some of them will be just ignored if there is a filter activated.

I am trying now to create a unique Automation Rule. So if they have some blocked tickets without an answer for a while at the end of the week, they will get one reminder email with a short summary of what should they pay attention to.

I've started with Scheduled trigger, choose cron expression for (Friday's at 12 pm), then to JQL added -

status = blocked AND "Blocked Reason" = Customer and

  • Process all issues produced by this trigger in bulk

Then I added an If-block like this:

reporter != issue.comments.last.author.name (since a reporter don't want to get a reminder about the issue he has just commented recently before emails are sent)

Then "Send email":

to Reporter

With Subject

Response Required: BLOCKED ISSUES from DevTools Summary

and Content "send as html":

<p>Hi {{reporter.displayName}},</p>

<p>A quick reminder that some of your tickets are blocked since a while.</p>

<p>Please, make sure, you've already reviewed this issue's to enable quick processing.</p>

<p>Summary:</p>
{{#issues}}
<ul>
<li><strong> Key: </strong>{{key}} </li>
<li><strong> Summary: </strong>{{summary}} </li>
<li><strong> Status: </strong>{{status.name}} </li>
<li><strong> URL: </strong> <a href="{{toURL}}">{{url}}</a> </li>
<li><strong> Assignee: </strong>{{assignee.displayName}} </li>
</ul>
<br>
{{/}}

<p>Thank you</p>
<p>Best Regards,</p>
<p>Development Tools</p>

The Problem is:

With this functionality, each reporter gets the list of all the blocked by customer tickets, not his own blocked tickets as a reporter. And I guess I have to expand my JQL like:

status = blocked AND "Blocked Reason" = Customer AND reporter = customer

or smth. like this, so that all reporters get only they own blocked by customers tickets, not all blocked by customer tickets.

 

Can somebody help me to figure this out?

2 answers

0 votes
Mykola July 25, 2023

I forgot to mention, in Rule Details, as an actor for this Automation Rule

- Actions defined in this rule will be performed by the user selected as the actor. 

I choose "scv_jira-automation" and I think that's why when I try the JQL as reporter=currentUser() it shows me my 3 "blocked by customer" tickets, but when executing the rule there is no any "currentUser()" for this Actor, so I get the message:

   Action details:

   Scheduled

   No related issues could be found.

   Send email

   As there is no issue present, cannot get the value of the field:
   reporter
   Could not send email, the 'To' address field is empty. If you have referenced a field it may     be     empty.
The message is actually wrong, the 'To' address field is not empty. I choose "Reporter" as a value.
So, I suppose, there is a conflict between those rule somewhere, but I cannot figure out where.
So how can I configure this rule to get email as I mentioned above - all reporters get only they own blocked by customers tickets, not all blocked by customer tickets out of the kanban-board?
0 votes
Mykola July 24, 2023

Interesting is, when adding:

   status = blocked AND "Blocked Reason" = Customer AND reporter = currentUser()

to JQL, there is a message - 3 issues found (which is correct - I expect one email about my 3 "blocked by customer" tickets), but while executing the rule then, there is:

   Action details:

   Scheduled

   No related issues could be found.

   If block

   No issues were found, stopping the rule.
in Audit Log. And still no emails were sent.
It works without AND reporter = currentUser(), but then I get all of "blocked by customer" tickets from the kanban-board (8 issues found, which is not what I need).

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events