Forums

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

Send a notification to Slack when issue field have the appropriate date and time

Sebastian September 6, 2023

Hello community,

I want to create an automate, which send to slack information about maintenance work in our company.

We have a field named: "Start of works" and this field is Date Time Picker with date and time.

I want to refer to this field, and try to do it like this jql :

start of works=now()

but it seems not working , because when the time from this field is appropriate the jql function nothing returns,

If there are any other solutions to integrate this ?

2 answers

0 votes
Sebastian September 12, 2023

any update?

0 votes
Kseniia Trushnikova
Community Champion
September 6, 2023

Hi @Sebastian,

Use this JQL instead:

"Start of works" > startOfDay() and "Start of works" < endOfDay() 

It will return all issues with the current date in this field. 

Sebastian September 6, 2023

@Kseniia Trushnikovayes I know about it, but I want to refer to certain value date and time with this field, for example:

date and time from filed is: 07/09/2023 12:22

and when system date and time is the same – send notification,

Kseniia Trushnikova
Community Champion
September 12, 2023

@Sebastian, I don't think that's possible. I guess that would only be possible if a rule could be scheduled to run every minute to check the field, but rules cannot be scheduled at intervals less than 5 minutes.

You can try to create this rule:

  1. Trigger: Scheduled every 5 minutes.
  2. Condition: JQL "Start of works" > now() and "Start of works" <= 5m
  3. Action: Send Slack message.

This rule will notify of issues where the field value is less than the next 5 minutes.

Sebastian September 20, 2023

not work properly, because jql not finding issues

Suggest an answer

Log in or Sign up to answer