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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Reminder Automation send Slack message

Edited

Hello there,

I would like to setup a reminder automation that sends a Slack message to a person when a certain date is reached.

I have looked in a few similar articles but their solutions did not work out for me.

Maybe you can point me in the right direction.

So far I have:

  • A custom field named 'Remind me' which is a date picker field.
  • The 'scheduled' part.
  • The 'Send a Slack message' with the Webhook

What I would need:

1. The Automation should run every morning (for testing it is every 5 minutes so that I do not have to wait until the next day to see if it works).

Bildschirmfoto 2022-07-29 um 14.51.33.png

2. I have no idea what to write in the JQL, I took this out of another article in the community but it doesn't work.

Bildschirmfoto 2022-07-29 um 14.50.21.png

3. It would need to send a Slack message which contains the certain Issue that the reminder is set too. Here I would also need help with the JQL

Bildschirmfoto 2022-07-29 um 14.50.31.png

 

Thank you so much already!

All the best,

Vanessa

1 answer

1 vote
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jul 29, 2022

Hi @Vanessa ,

This is quite close! There are just a couple changes to make this rule work as you intend.

  1. In your scheduled trigger, you can remove the JQL filter. We will do a JQL search in a new action.
  2. Add a Lookup issues action above the Send Slack message action. The JQL you have will go in this action:
    "Remind me" >= startofday() AND "Remind me" <= endofday()

That's all! Your newly modified rule will have that new action here:

image.png

 

The reason we'd use a "lookup issues" action rather than the JQL filter in the trigger is to populate a list of issues. You want to step through the list of issues in your Slack message, so we have to generate that list first. It's a slight difference from how it would work if we just searched those issues from the trigger - the end result is that you'll get one Slack message with a list of issues, rather than multiple Slack messages.

Cheers,
Daniel

Good evening Daniel,

it worked!!!
Thank you so much for the excellent, easy explanation.

Have a great start into the new week.

 

All the best,

Vanessa

Like Daniel Eads likes this

@Daniel Eads hello,

I might have encountered one little problem, the message that is send to the person does not contain the issue URL.

 

Bildschirmfoto 2022-08-06 um 08.17.07.png

Any idea how to change the automation?

 

Bildschirmfoto 2022-08-06 um 08.18.41.png

Thanks in advance :) 

 

- Vanessa

Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Aug 08, 2022 • edited Jul 11, 2023

If you just want to have it be a hyperlinked URL, that's a formatting change that can be done in the Slack message part. Here's the entire Slack message, still using the lookup function but tweaked so that the issues will be clickable in Slack:

Hey Antonia,

you wanted to be reminded for this following issue:
{{#lookupIssues}}
• <{{url}}|*{{key}}* {{summary}}>
{{/}}

Now for the part of the message being empty - that might be a couple things. Check:

  1. Is the Lookup Issues action above the Slack message action on the list on the left? There won't be any data in the list for the Slack message if the lookup action hasn't run yet.
  2. Are there issues that meet that criteria? Try running an issue search with the same JQL and see if there are any results.

 

As an improvement to this, you could also check to see if there are no items to be reminded that day, and just not send the Slack message if there aren't. Do that, you would add a Condition between the lookup and Slack actions - the Advanced Compare action.

image.png

This condition checks to see how many issues came back from the lookup - issues that have the "Remind me" field set to today. If there aren't any, then the condition fails and the Slack message won't be sent.

image.png

Like Hector Valenzuela likes this

Hello Daniel!

Me again, I have done it as you mentioned.

Bildschirmfoto 2022-09-13 um 21.31.53.png
Now I get an empty Slack message:

Bildschirmfoto 2022-09-13 um 21.15.14.png

 

Any idea what might need to be changed? :) 

All the best,

Vanessa

Hi vanessa, 

 

did you check if your JQL is bringing any data first ? 

Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jul 11, 2023

Very late in seeing this, but the smart values were not correct for the lookup list. I edited the answer above, but here is the relevant portion that needed to be updated in the Slack body:

{{#lookupIssues}}
• <{{url}}|*{{key}}* {{summary}}>
{{/}}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events