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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.