How to email all proejct leads in Jira?

How to email all proejct leads in Jira?

The administrator email option from jira does not have an option to email by project lead role.

How can I send notifications to all leads?

I do have about 100 projects, so manual work is not quite an answer.

2 answers

1 accepted

1 votes

I'm afraid manual work is the answer, as you say, it doesn't have the project-lead option.

I'd be tempted to scrape the list-of-projects screen for the names, then add them to a group.

I dis something close to that: I just emailed all the project administrators instead. More people but it should also cover the leads too.

That was another good option - I generally assume that project admins might need to know stuff (especially if the nominated lead is on holiday!)

I did't want to do this manually and don't want to bother with looking through the Plugins so I put something easy together. Just put this code in the Chrome console when you are viewing the Project list and it will give you some emails.

 

var htmlList = $x('//*[@id="project-list"]/tbody/tr/td[5]/a/@href');
function printAllProjectLeads(array){
var list = [];
var email = "@gmail.com";
function log(e, i, a){
var name = e.value.split("=")[1] + email;
if(name != "JIRA.Unassigned" && list.indexOf(name) == -1)
list.push(name);
}
array.forEach(log);
document.write(list);
}
printAllProjectLeads(htmlList);

If you don't have access to the admin list view you can use:

var htmlList = $x('//*[@id="content"]/div/div/section/div/div/div[2]/div/table/tbody/tr/td[4]/a/@href');

Which JIRA do you use ? JIRA 4.4.1 and above has the option to send mails to 'Project Role'.

Understand, but we handle such situations by having a project role 'Project Lead'.

Whenever we create new project the lead will be added to this role. Hope this works for you too.

Instead of, or as well as the project lead? Seems like unneccessary work to me.

Project Lead is not a 'project role', hence Sorin's question!

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,887 views 12 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot