Forums

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

Jira Slack Automation

Vanessa
Contributor
April 29, 2022

Hello Community,

I wanted to create an automation that is supposed to do the following:
If an issue is moved to Code Review, a Slack message will be send to the team channel. Ideally, the issue name should be posted in the Slack message.

So far I have got:

Bildschirmfoto 2022-04-29 um 17.52.21.png

The trigger event works, Slack message is also sent, just with no issue information.

How do I add, that the last issue moved to the Code Review column will be looked up to add that to the Slack message?

 

Thank you already for the help!

Have a nice weekend,

 

Vanessa

1 answer

1 accepted

2 votes
Answer accepted
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 29, 2022

Hi @Vanessa ,

Good news, this Automation rule can be simplified! Since you're using the Issue Transitioned trigger, it already knows which issue to get the details from. So, based on the screenshot, you'd make these changes to the rule:

  1. Remove the "Then: Lookup issues" action
  2. Modify the "Send Slack message" action to take out the issue lookup. I've included the code that will also make a nice link to the issue in Slack too:
    Hey there, a new issue is in Code Review, have a look!
    <{{issue.toUrl}}|*{{issue.key}}*  {{issue.summary}}>

And that's all!

Cheers,
Daniel

Vanessa
Contributor
April 29, 2022

Daniel!!!

You made my friday so much better, thank you it works just fine.

 

All the best,

Vanessa

Like Daniel Eads likes this

Suggest an answer

Log in or Sign up to answer