Hi all,
I've got a workflow transition where you select the assignee and an option from a checkbox field on a transition screen. As soon as this screen is submitted and the issue transitions, I would like to send a Slack DM to said assignee (ideally with the checkbox value selected also, but no worries if not). It seems like it should be simple, but I can't seem to crack it.
I've tried so many different methods from Atlassian and Slack documentation but nothing seems to be working for me - I can only seem to send the notification to specific channels or to a set user, but I want this to send the DM's dynamically so that whoever is the assignee of the issue will receive a DM in slack. Any help/advice would be greatly appreciated!
Hey Callum,
You could use Automation for this - with some considerations:
@{{issue.assignee.properties.metadata.slack_id}}
to send the direct message. The message body itself can have the value of your checkbox, also using a smart value
Hope that helps! I think this is a do-able message with the assistance of the user properties for Automation to pull from.
Cheers,
Daniel
Hello Daniel, thanks for your feedback, is there a way of doing this without a webhook URL? as it insists on one and i don't want to bother users of a slack channel with direct messages to others
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Karl Hamilton ,
The "channel or user" field does override the default channel in the webhook, despite having to choose one when actually setting the webhook up. For example, using a webhook URL associated with #general and then putting a smart value in the "channel or user" field, no message is actually sent to #general. It's a bit counterintuitive!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Daniel... thank you, this works like a charm!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Daniel Eads
Thank you for sharing. I have tried to use the assignee smart-values. However, it does not work when I send message to slack channel. Is there anything I missed? Kindly need your advice.
Regards,
Moyo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am getting this issue:
The server responded with: {'ok': False, 'error': 'missing_scope', 'needed': 'users:read', 'provided': 'incoming-webhook'}
I checked the permissions and my token as user:read permission. What could be the issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Were you able to solve this problem?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.