Forums

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

Is there a way to send messages via Slack to users on specific conditions?

p_vallarino August 30, 2021

The conditions I'm talking about are these two:

  1. If they have issues with no story points assigned for the following sprint
  2. If the sum of all the story points assigned is bigger to a specified number

 

I have found some notifications available, these are the ones attached via the photo. But these dont seem to solve my issues. Captura de pantalla 2021-08-30 122623.png

 

If there is no way to get these alerts via Slack, I'd also be greatful if i could get that info through other means, like via the Slack app.

 

Thanks

1 answer

1 vote
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 30, 2021

Hi @p_vallarino -- Welcome to the Atlassian Community!

You could try to use Automation for Jira (A4J) rules with your conditions, and then send the Slack messages as needed.  Please look here for some ideas to help try that:

Best regards,
Bill

p_vallarino September 2, 2021

Hi Bill, 

 

Your solution was great!!! It opened me to a whole range of future possibilities. Although, I was only able to solve one of both problems.

I was able to set up the alerts when any user makes an issue with no Story Points. But I was not able to retrieve the sum of story points o a person per sprint.

If you know any way that can be achieved, I'd be most greatful.

 

Thanks!!!

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.
September 2, 2021

Hi @p_vallarino 

I am glad to learn that helped.  Regarding your question about summing the story points per person, the approach depends upon which version of Jira (and automation) you are using (Cloud or Server) and what type of project (Company-Managed or Team-Managed).  Which are you using?

For example with a Jira Cloud, Company-Managed project, you may use Lookup Issues to do this with some JQL.  If you trigger this rule from an assigned issue in a sprint, you would get the total story points for that assigned person in that sprint:

  • trigger: manual
  • action: lookup issues with JQL
assignee = {{issue.assignee}} AND sprint = {{issue.sprint}}
  • action: add to audit log the sum with {{lookupIssues.Story Points.sum|0}}

You could change that last action to be a comment, email, or Slack message instead.

If you need this for multiple users, you could repeat the actions with hard-coded user information, or use an advanced branch on a list of users.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events