Forums

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

Automation: Post Message When No Issues are Found

jteamsupport March 10, 2023

We have an automation configured that posts a list of tickets to slack each week. However, some weeks there are no tickets to post. Instead of it just skipping the execution for that week, I was wondering if anyone knew of a way to conditionally post a separate message. This is what we have.

When : Scheduled(just sets the date)

Then: Lookup(JQL query for tickets. We look up issues on this step instead of scheduled so it doesn't duplicate the posts). 

And: Slack Message 

 

I'm wondering if there's a way to post some type of message, "No tickets releasing this week", if the JQL does not return any results. 

1 answer

1 accepted

4 votes
Answer accepted
Esther Strom
Community Champion
March 10, 2023

Hi, @jteamsupport - yes, it's possible. The Lookup action automatically puts its results in a smart value called lookupIssues. You can check for a value and then use different actions depending on whether it's empty or not. Here's a manually-triggered example; in my sample project I don't have any tickets that are currently assigned, so I used Assignee is not Empty as my JQL. I'm just sending a message to the audit log, but your action can be whatever you want - a slack message in your case.

 

 2023-03-10 10_19_24-Automation - The Jira of Champions - Brave.png

2023-03-10 10_19_45-Automation - The Jira of Champions - Brave.png

2023-03-10 10_19_56-Automation - The Jira of Champions - Brave.png

jteamsupport March 10, 2023

Thats perfect thanks!

Suggest an answer

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

Atlassian Community Events