Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Jira - Can I set up scheduled searches and triggers based on results of those searches?

Hi there!

My organization uses Jira Server 7.12.3.
Also, in case it's relevant, we use Slack at our organization. We also have the Automation Lite and Notification Assistant add-ons installed in our Jira instance.

Some users are looking to set up a scheduled search in Jira and then set up triggers for other operations based on those search results. For example, is there a way to set up an hourly search in Jira and then have it trigger a WebHook to send out, or a notification to send out, ONLY if the results of that query are 0? So, first we would need to set up a scheduled search and then we would need to trigger an event IF the query results = a certain number of issues.

Let me know if anyone has any ideas or is aware of an add-on that might allow us to accomplish configuring something like this. Thanks so much!

1 answer

1 accepted

Hi Andrew,


This is not currently possible in Notification Assistant for Jira. Would it be possible to move the logic to your Webhook listener to make it a dead-man switch? So if it doesn't get a notification in X amount of time, it does whatever you want? Getting a notification from Jira would reset that timer?

 

Boris

Hey there, @Boris Berenberg - Atlas Authority ,

That's a good thought! I think I might be able to also write a scripted condition, to check if the jql_result_count matches a certain value.

After hearing the full original request from my user, I believe I ultimately decided that the complexity needed ONLY to trigger automation or notifications on 0 results wasn't worth the implementation, compared to the simplicity of setting up a notification (or filter subscription) to run however often they needed it and for the recipients to just take the extra few seconds to view the total results.

But, since I have you here, Boris -- is it possible to use the JQL result issue count as a variable in a Notification Assistant template? I'm imagining using that in the subject line. "{{total}} Issues in the Queue!" or something like that.

From there, if they really wanted to only see the alert if it was "0 Issues..." they could filter or build organizational rules on their own based on subject line contents.

Anyway, I don't think this an active need for my users at this time. Thanks for your thoughts and response!

Andrew

Try using:

${issuecount}

I am not sure if it will work, but worth a try.

For sure worth a try. It didn't work for me, though. Let me know if you think of anything else. I'm on board with experimenting!

Thanks, Boris!

Andrew

Hmm spoke to the devs and this isn't available in the Subject context. We could add support for it, but I am thinking this may be better addressed by a broader review of which placeholders exist in which contexts, and also improving the docs around that.  We're going to review this and decide how to proceed.

Right on! Thanks so much, Boris.

-AZ

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

New Cloud Apps Roundup - April 2021

Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...

273 views 3 20
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you