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,365,488
Community Members
 
Community Events
168
Community Groups

Slack notifcation have some gibberish text in notification

Edited

Hello Community, 

Need help please 

We are using JSM Cloud and have an automation rule to notify new issues in slack when created in Jira 

Rule is working fine and it does notify

In slack notifications , we see some gibberish text ..not sure about it 

Can someone please advise

 

2 answers

1 accepted

5 votes
Answer accepted
Daniel Eads Atlassian Team Jan 05, 2022

Hi @Ashish Saini ,

Jira Automation will include formatting like {color} from the body of a smart value by default. When rendered in an editor that doesn't use that formatting style, such as Slack, the formatting text will then be visible and the formatting won't be applied.

You can use the .text function in a smart value to exclude any formatting and use the text characters alone for the value. For your example above, you would change the Description line to add .text in the smart value:

*Description:* {{issue.description.text}}

And that should do it!

Cheers,
Daniel 

@Daniel Eads : Thank you for the assistance.

I tried and it worked ..Thank you so much

Cheers

Thanks
Ashish

Like Daniel Eads likes this

Worked for me as well, thanks. 

It was working just fine all along and then it started to send emails with that {color} included all over in email.

This solution fixed the issue.

Thanks Daniel.

Cheers

Brijesh

Like Daniel Eads likes this
0 votes
Pramodh M Community Leader Jan 04, 2022

Hi @Ashish Saini 

Use Slack Message Formatting to form a message to properly render the message

https://api.slack.com/reference/surfaces/formatting

Thanks,
Pramodh

@Pramodh M : Thank you for your response 

Here is the formatting i am using

ALERT! <https://domain.atlassian.net/browse/{{issue.key}}|{{issue.key}}>

*Summary:* {{issue.fields.summary}}

*Reporter:* {{issue.fields.reporter.displayName}}

*Description:* {{issue.description}}

Issue only occurs in description ..other fields are fine .

Can you please advise.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS

Atlassian Community Events