Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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
Highlighted

Script Runner - Send Attachment for Slack Edited

A script to add on Jira Script Runner "Script Listener" with method "Issue Updated" to send automatically a message on Slack when a attachment is add on task to user with identifier on task label

I hope help you all as helped me and my team! :)

Check on: https://github.com/GTessarini/JiraAutomations

2 comments

is this solution for cloud or server?

Like Gabriel_Tessarini likes this

Hi ecor, thanks for the interest! This solution was Implemented for Jira Cloud, but if your server is able to connect with the Slack Api by network, it will works correctly

Hi Gabriel, do you know if it's possible to send a notification to a user on slack based on a JQL?

 

I want to alert all the assignees of the issues that are with SLA brenched.

Like Gabriel_Tessarini likes this

Hi @Vanessa Sousa interesting use case!

Sadly  I can't help on the Script Runner side. However, in case you aren't able to get the experience you are after with Script Runner the product that I work on (http://stratejos.ai) solves exactly the type of problem you are asking about. 

Our scheduled messages let you run recurring messages based on JQL filters. In your case, stratejos would: 

  • Check every morning (or every hour) for issues outside of SLA
  • If matching issues are found ping a channel (or DM the assignees of those issues) 
  • Recipients would have the option to view the issue or update status directly from Slack 

Feel free to send me an email at jamesm@stratejos.ai if you would like to get set up with a trail. 

James

Like # people like this

Hi Vanessa! That's a good question. JQL is a search based language, like a SQL for Jira, so it's unable to do other methods that are not related specifically with query's, but in Script Listener with the Groovy language, you can use programmable methods of the language as the same way you can input JQL querys on Groovy methods that will run they for you and then filtering this SLA parameters and selecting the required users as you need. At this post link, I have developed many others scripts that send Slack messages that can help yoi. For your case, you can use this script on Script Console, to use always you want, or use on Scheduled Job to run this methods periodically.

Hello James

 

I'm having some problems connecting with Stratejos.

Can you help me? 

Hi @ecor_clima  would be happy to :)

If you send me an email jamesm@stratejos.ai I can walk you through getting set up with a scheduled message in stratejos. 

James 

Comment

Log in or Sign up to comment
TAGS

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