Send Email Notification to all Users in Stash

Benny Benjamin December 10, 2012

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

1 vote
Answer accepted
Jens Schumacher [Atlassian]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 10, 2012

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.

3 votes
Benny Benjamin February 18, 2013

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

Scott Hung February 27, 2014

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.

2 votes
Ingo Mohr November 29, 2016

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.

Benny Benjamin November 29, 2016

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

Ingo Mohr November 29, 2016

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

0 votes
Benny Benjamin December 10, 2012

Thanks Jens

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events