Forums

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

Slack notifcation have some gibberish text in notification

Ashish Saini
Contributor
January 4, 2022

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
Atlassian Team members are employees working across the company in a wide variety of roles.
January 5, 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 

Ashish Saini
Contributor
January 5, 2022

@Daniel Eads : Thank you for the assistance.

I tried and it worked ..Thank you so much

Cheers

Thanks
Ashish

Like Daniel Eads likes this
Brijesh Pathak
Contributor
April 5, 2022

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 Champion
January 4, 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

Ashish Saini
Contributor
January 4, 2022

@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
AUG Leaders

Atlassian Community Events