Forums

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

Sending a Filter Result to a Slack Channel Notification

Pedro Hernandes August 4, 2021

Hi, I just want to send the result to this filter result below (project in (MKT, CEB) AND status in (ADJUST, Assigned, "Content Value Feedback", Editing, "Final Review for Publishing", "IDEAS | BACKLOG", "In Progress", REVIEW, "Ready to publish", "To Be Assigned", "To Do") AND assignee in (5f0cec379d9a120029406004) AND due <= 7d ORDER BY due ASC, created DESC) in a Slack Channel Notification in a weekly basis. How to?

Screenshot_1.jpg

1 answer

1 accepted

2 votes
Answer accepted
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 4, 2021

Hi @Pedro Hernandes

Filter subscription currently works for individual users and groups. You could use most likely an automation, with webhook to send results to a slack channel. This automation would use a scheduled trigger, to manage the weekly sent.

Let me know if that helps.

Alex

Pedro Hernandes August 4, 2021

Yep, I have an individual subscription, and did try with the webhook, but it's not working:

Screenshot_3.jpg Screenshot_2.jpg

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 4, 2021

The rule you have created will run only for the issues that have changed since the last time that rule executed.

What I would do, for testing purposes, is to:

  • Change the trigger to manual
  • Remove the "only include issues that....", just to make sure that I will receive results
  • Run manually the rule
  • See if I receive any messages on slack

Click as well "validate query" to see if you are getting any results.

Let me know how this will go.

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 4, 2021

Hi @Pedro Hernandes 

Adding on to what Alex suggests and your automation rule image:

As implemented with the scheduled trigger with JQL, this will post a message for each issue found.  If you would prefer one message with the list of issues, consider using:

  • a scheduled trigger with no JQL
  • the LookupIssues action with your JQL
  • a condition to check if there are any issues to send {{lookupIssues.size|0}} is greater than 0
  • and then send the message with the list of issues

Best regards,
Bill

Pedro Hernandes August 4, 2021

It validates, but doesn't send these 3:

Screenshot_4.jpg

@Bill Sheboy I add it, but it doesn't seem right (because it didn't work of course), where and how should I do this?

Screenshot_5.jpg

Screenshot_6.jpg

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 4, 2021
  • In the lookup component, use the filter= "weekly planning".
  • Add a advance condition, as @Bill Sheboy stated with {{lookupIssues.size|0}} is greater than 0
  • On the Send Slack component write something like:
Hey team - we've got the following issues left in this sprint:
{{#lookupIssues}}
* {{key}}
{{/}}

 Test the rule again

Like Bill Sheboy likes this
Pedro Hernandes August 4, 2021

Am I missing something?

 

Screenshot_9.jpg Screenshot_8.jpg Screenshot_7.jpg

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 4, 2021

Hmmm...I'm getting correct results:

results.png

 

The only difference I see is that I have checked the box "send message as automation user". Try adding this and try again.

ruleee.png

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 4, 2021 edited

Hi @Pedro Hernandes 

If that does not fix it with the suggestion from @Alex Koxaras _Relational_ please try this:

  • after the action for LookupIssues, add an action to write to the audit log with the number of issues returned:
Number of issues returned = {{lookupIssues.size|0}}
  • post an image of your audit log from trying to run the scheduled rule manually.  That may reveal what is happening; I suspect your filter is not running as expected.

Thanks!

Pedro Hernandes August 6, 2021

Nope, still blank, here are the logs:

Screenshot_2.jpg Screenshot_1.jpg

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 6, 2021

@Pedro Hernandes first of all, your JQL is wrong. You might have saved it with a different name. So carefully go back and check the correct name.

filter.png

When you will enter the correct JQL, and you will click "validate query", it will return something (even 0 results).

Make that change and let me know

Alex

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events