Forums

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

Slack survey

Jennifer Thobois January 12, 2023

Hi,


I'd like to send a Slack direct message to the person who closed a ticket in Jira automatically at closure.


Is it feasible ? Could you please help me to achieve that ?

 

We're running Jira Software - Cloud and Slack Business +.


Thank you,
Jennifer

1 answer

0 votes
Mikael Sandberg
Community Champion
January 12, 2023

Hi @Jennifer Thobois,

Welcome to Atlassian Community!

Yes, that is possible by using automation and have it trigger on the transition to your closed status. You would need to have an app in Slack for incoming webhooks, but that is pretty easy to create, here is an tutorial for it.

Jennifer Thobois January 12, 2023

Hi Mikael,

Thank you for your reply, my Jira admin told me that with automation it's only possible to publish a message in a Slack channel not in direct message, do you confirm ?

Thanks,
Jennifer

Mikael Sandberg
Community Champion
January 12, 2023

No, you can do both a message to a Slack channel and DM's, just note that you have to use the Slack member ID for the user you want to DM.

Screenshot 2023-01-12 at 11.38.40 AM.png

Jennifer Thobois January 13, 2023

Thank you @Mikael Sandberg, sorry for my dumb questions, I'm not a Jira admin, but how in Jira can we set the user ID to be dynamically the one of the person who closed the ticket ?

Thanks again for all your help,

Jennifer

Mikael Sandberg
Community Champion
January 13, 2023

You would have to add the Slack member ID as a property on the user, here is a good article about how to do it, Mention someone directly in Slack via Jira Automation.

Jennifer Thobois January 13, 2023

Thank you very much ! I'll check that !

Thanks again for your help and your patience

Like Mikael Sandberg likes this
Jennifer Thobois January 16, 2023

Hi,

It's me again, sorry :( 

My Jira admin told me the following : 

"The problem is that the message can only be sent to a specific user or channel, not to the reporter.

Messages are sent to the default channel specified in your webhook, but you can override this by specifying another channel with '#other-channel', or a specific user with '@userID'."

So I'm a bit confused, as I'm not a Jira admin I can't assess what's feasible or not. But I assume that the Slack User ID of the reporter should be sent to Jira via the webhook, right ?

Thank you,

Jennifer

Jennifer Thobois January 23, 2023

Hi @Mikael Sandberg ,

Sorry to ping you again, it seems you're the only one who would have some answers for me there.

My Jira admin told me the following : 

"The problem is that the message can only be sent to a specific user or channel, not to the reporter.

Messages are sent to the default channel specified in your webhook, but you can override this by specifying another channel with '#other-channel', or a specific user with '@userID'."

So I'm a bit confused, as I'm not a Jira admin I can't assess what's feasible or not. But I assume that the Slack User ID of the reporter should be sent to Jira via the webhook, right ?

Thank you,

Jennifer

Mikael Sandberg
Community Champion
January 23, 2023

Correct, you need the Slack ID for the user you want to message. If you implement the scripts mentioned in article I linked to above you can send the Slack message to anyone, including the reporter. What you would do in the automation is to use the web request to get the user property for the reporter to get their Slack ID.

Like Jennifer Thobois likes this
Jennifer Thobois January 25, 2023

Hi @Mikael Sandberg , 
here the last reply I received from my Jira admin : "The reporter is a variable, so I cannot enforce this to the webhook. The webhook should contain the name of a channel or a specific user (not a variable as the reporter)."

It seems very complicated so if you have any other articles or guides that could help, I'll take it.... :(

Thank you 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events