Send Email Notification to all Users in Stash

Is there a mechanism to send email to all users in Stash?

This would be handy in the event of outages.

e.g. upgrading Stash

4 answers

1 accepted

This widget could not be displayed.

Right now there is no mechanism to send emails to all users in Stash. We will be looking at announcement banners first and look into more types of notifications later on.

This widget could not be displayed.

BTW, got a work around for the time being, use the REST API to get the list of user and parse it.

https://developer.atlassian.com/static/rest/stash/latest/stash-rest.html#idp83824

I've got the following to work on msys, should work in other *nix:

curl -u $user:$password -X GET -H "Accept: application/json" -H "Content-Type: application/json" "http://stash.company.com/rest/api/1.0/admin/users" 2> /dev/null |
sed 's/\}/\n/g' | grep emailAddress | sed 's/.*emailAddress\":\"//' | sed 's/",\"id\".*//' | grep . | sort -fu

A true lifesaver. Just be aware that (as documented on the referenced REST API page) there's a default limit of 25 records being returned.

This widget could not be displayed.

It's almost 2017 and there still seems to be no option for this.

Are you planning on adding that feature soon? We would very much appreciate that.

Ingo, I think you meant to add this as a comment?

Hey Benny - yep, you're right. Sorry about that.

This widget could not be displayed.

Thanks Jens

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,291 views 8 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you