Forums

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

JIRA - Send Email Notification on a Date from Date Picker Custom Field

MAG-II
Contributor
August 14, 2018

Hello - 

I am wondering if it is possible to send a JIRA notification based on a date that's chosen from a date picker custom field. Is such a configuration possible in JIRA? I'm not sure how to even begin making such a configuration.

Any advice / insight would be much appreciated. Thanks in advance.

1 answer

0 votes
Mirek
Community Champion
August 14, 2018

Not directly in JIRA (if you are not talking about subscriptions) but yes it is possible. You have couple of options actually. For example one of them...  You can have a scheduled cron expression that would execute a simple script that is logging into JIRA using REST API checking value in the date picker. If date is match then script execute a transition that sends notification (or you can send a notification directly from script, not JIRA.. depends on what notification you would like to send overall)

MAG-II
Contributor
August 14, 2018

Hi Mirek - 

Thanks for the response. It's good to know that such a solution is possible, however it does sound tricky. Ideally I would want a kind of system email notification to be sent to a group within my project on whatever date was inserted into this particular date picker field.

Where would I begin if I wanted to explore the scheduled cron expression route?

Mirek
Community Champion
August 16, 2018

Ok, maybe easier way would be for you to use some kind of plugin that would automate transition and trigger a notification.

For example a free one JIRA Automation - https://marketplace.atlassian.com/apps/1211836/automation-lite-for-jira?hosting=server&tab=overview

Then you would need to configure it to use a JQL filter based on your date field and for all tickets that are in results would trigger a transition behind which you would have a unique event and notification.

As I mentioned there are many options, just the idea is the same. You need to have something that checks value of your field and if there is match do something with that.

MAG-II
Contributor
August 16, 2018

Good Morning Mirek - 

The automation plugin could work in my case, however, I was hoping to have an email sent out without having to go through a transition. I guess the most roundabout way to do it is to add a hidden transition to every status which transitions to itself. It doesn't seem like great practice though.

MAG-II
Contributor
August 16, 2018

Following up on my response, it looks as though with JIRA Automation (as well as Escalation Services in Scriptrunner) only one transition can be triggered per rule that is created. 

The idea is that I want to be able to potentially send this email on a specific date, when the Issue could be in any status within my workflow. Making a rule for every status / transition in my project doesn't sound feasible.

Mirek
Community Champion
August 16, 2018

I think JIRA Automation have a way to send email directly (also SMS or Webhook). Just maybe it is not in free version..

Thanks to that you would not need to add any transitions, just trigger an email notification when condition is met.

[EDIT]

Indeed .. https://docs.automationforjira.com/upgrade/lite-vs-pro.html

Suggest an answer

Log in or Sign up to answer