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,298,096
Community Members
 
Community Events
165
Community Groups

Can Bitbucket Server limit the size of message content in Slack plugins?

Hello~

My customer is using the Slack plugin installed on their Bitbucket Server.

My client wants to limit the sending of too much content when an event occurs on Bitbucket.

So I found the "slack.addon.unfurl.file.max.lines" option in the path below, and entered slack.addon.unfurl.file.max.lines=3 in bitbucket.properties, but it does not apply.

Is bitbucket.properties the correct setting place or is the setting correct? Or I'm wondering if I need to set it up somewhere else.

https://confluence.atlassian.com/slack/use-slack-and-bitbucket-server-together-974387205.html

 

Thank you.

 

1 answer

0 votes
Luiz Silva Atlassian Team Aug 12, 2021

Hey @Sung Hyun Ryu,

 

slack.addon.unfurl.file.max.lines should be set as an environment variable passed to the Bitbucket Server process. It should limit the size of repository file previews, when someone pastes a link to a source code in slack.

If that's not what you are looking for, there's also an option when configuring channel notifications for repositories. While creating or editing a connection between a channel and a repository, you can chose between Basic and Extended verbosity. Switching to Basic should reduce the amount of space notifications take in Slack.

 

Hope that helps. Cheers!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,223 views 2 9
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