Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Work Log Monthly Email using Jira Automation

Aleena Umaiir
Contributor
March 6, 2025

I am working on a task, I want Jira to send an automated email at the start of month to the user.

The email should contain all the issues that user has logged work on, I used this query

worklogDate >= startOfMonth(-1) AND worklogDate <= endOfMonth(-1)

and following email body:

{{#issues}} - [{{key}}] {{summary}} - Time Logged: {{worklog.timeSpent}} {{/issues}}

but with this, I am getting multiple emails for each issue, I want to include all issues in one email, where I am wrong here?

 

2 answers

2 accepted

0 votes
Answer accepted
Sarp Egemen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 6, 2025 edited

Hi @Aleena Umaiir ,

As the warning in your screenshots also states, the action will be executed for each issue matching the JQL. That's why you receive an email for each matching issue.

You can still use automations, but I believe what you are trying to achieve is already a feature of Jira called "Filter Subscriptions." You can save any filter and then subscribe a group (or user) to receive those issues in a periodically timed email, similar to the format you mentioned.

Here you can find more about filter subscriptions: link 

Here is an example how a filter sub. looks like as an email:
ss com 2.png

Aleena Umaiir
Contributor
March 6, 2025

@Sarp Egemen It was so simple and I was using automation and all. 

Anyways, both methods worked but I am liking Filter format very much. 

Thanks a lot!

Like • Sarp Egemen likes this
Aleena Umaiir
Contributor
March 7, 2025

@Sarp Egemen can we take a sum for all of these "Time Spent" records and show at the end? Any feature like this?

0 votes
Answer accepted
Vishal Biyani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 6, 2025

@Aleena Umaiir 

Can you share the screenshot of your automation to better understand where the issue could be?

Aleena Umaiir
Contributor
March 6, 2025

1.PNG 2.PNG 3.PNG

Aleena Umaiir
Contributor
March 6, 2025

@Vishal Biyani  here you go, please look into it

Vishal Biyani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 6, 2025

Can you describe your problem in some more detail?

As per the SS, automation will trigger at scheduled time and send one email.

it doesn't look like this will send multiple emails.

Aleena Umaiir
Contributor
March 6, 2025

I am receiving multiple emails, each email has one issue,

I want all issues to be placed in one email, below is the ss of the one of the multiple emails I received4.PNG

Vishal Biyani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 6, 2025 edited

in that case take out the JQL from Scheduler.

After Scheduler add an action lookup with the JQL that is currently inside scheduler.

Then in the email iterate over lookupIssues. 

This should resolve the problem in my opinion.

This is how the automation will look like

snip.png

The email body should have something like this:

{{#lookupIssues}} - [{{key}}] {{summary}} - Time Logged: {{worklog.timeSpent}} {{/}}

Let me know how it goes for you

Aleena Umaiir
Contributor
March 6, 2025

Thanks @Vishal Biyani it worked.

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events