Forums

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

Send Scheduled Email Using Post-Function in JIRA Data-center

Digvijay Singh Gehlot
Contributor
April 20, 2025

Hi Community,

Is there a way to send out scheduled email using Post-function?

My use-case is, I want to send out scheduled email to Reporter, when a Parent issue is sitting on Done status and its Child(ren) is also sitting on Done status for 90 days.

  • For example, on Jan 1, user moved the Parent issue to Done and also, its Child issue to Done on the same day.
  • Now, it's been 90 days that Parent and Child are sitting on Done, then a schedule email will send out on 91st day.

Is there a way I can set the Condition in Post-function using "Email Issue (JMWE app)" or "Send a custom email - scriptrunner post-function" like:

  • No workflow status changed from Done for Parent and Child within 90 days, once they are transitioned to Done status on Jan 1.

Please guide if it is possible using post-function and/ or suggest how to configure the same conditions in Jira automation rule.

Thanks  

1 answer

1 vote
Tinker Fadoua
Community Champion
April 20, 2025

@Digvijay Singh Gehlot 

If you don't mind me asking why do you want to notify that Parent and child issues are in Done Status?

Is there an action reporter needs to take when issue has been in Done status?

Based on your answer we can both think on the solution.

FYI what you are trying to achieve is doable however I am trying to better understand your case scenario.

Best,

Fadoua

Digvijay Singh Gehlot
Contributor
April 20, 2025

Hi @Tinker Fadoua 

Thank you for your message.

As per my customer requirement, they want to send a reminder email to Reporter after 90 days, saying that "it has been 90 days, you have not answered a survey question (custom field on Parent issue), as the Parent and its Child is already in Done status."

In that Reminder email, Reporter will click on the Parent issue key and land on Parent issue (and I am showing survey question when Parent & Child are both in Done). The value selected by Reporter will be further used for reporting purpose.

Why I want to send the schedule email using post-function is because, I am using a custom email template (scriptrunner post-function). But when I try to add the same html code in jira automation rule, it is not giving me the same layout as requested by my customer. 

Is there a way we can schedule the email as per given conditions mentioned in my earlier message? or suggest how I can achieve the same in jira automation rule.

Piyush Annadate _ACE PUNE Community Leader_
Community Champion
April 20, 2025

You may use the Jira email buttons or template in the jira automation.

 

But prior that, can you share the issue while sending mail via post functions?

Suggest an answer

Log in or Sign up to answer