Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,678
Community Members
 
Community Events
165
Community Groups

Include a custom "user picker" field's data in a Slack message using Automation

I have a custom "user picker" field. I'm setting up an automation between JIRA and Slack that fires a custom message into a Slack channel when a ticket hits certain criteria. One piece of information I'd like to show in the Slack channel is the user selected on that field. 

 

I've added this to the Slack message that send: 

*Incident Commander:* {{issue.customfield_12066}}

 

but what appears is this: 

Incident Commander: 557058:41a2c14d-63c1-4cf6-94ba-7a22df13d6bb

 

How do I get the name to render?

2 answers

1 accepted

2 votes
Answer accepted

I actually solved this one on my own shortly after posting this. I added .displayName to the end of the query: 

 

*Incident Commander:* {{issue.customfield_12066.displayName}}
0 votes
Daniel Eads Atlassian Team Nov 12, 2020

Hi Stephanie,

Glad you were able to get the smart value working to show displayName in your Slack message!

If it's useful, we've recently put out a script that can sync Slack IDs with Jira properties - making it possible to at-mention Slack users in your Automation messages. If you're spinning up new channels for incidents, the at-mention might help get the right people in the channel faster. Or it could be useful to add more context in Slack itself if someone isn't familiar with the incident commander's name at a glance. At any rate, instructions and the script are available here.

Cheers,
Daniel | Atlassian Support

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: AppLiger

This month the spotlight is on AppLiger. We caught up with Pavel Pavlovsky, CEO and Product Manager, to learn how the company started and what fuels the team's creativity.    Atlassian:...

331 views 0 7
Read article

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