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

Send Slack message to Jira issue assignee

Callum Carlile Community Leader Jul 16, 2020

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!

1 answer

0 votes
Daniel Eads Atlassian Team Nov 12, 2020

Hey Callum,

You could use Automation for this - with some considerations:

  • The Slack IDs need to be synced as user properties in Jira - here's an article and script for doing that 
  • The Automation rule trigger would be the status change. This would be configured in Automation rather than in the workflow itself (slight difference in where it's set up)
  • In the "Channel or user" field at the bottom of the Automation action that sends a Slack message, you can use a smart value 
    @{{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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,203 views 8 29
Join discussion

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