Forums

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

Automation Variable for email contacts

adrimars
Contributor
August 7, 2023

Our IT team has setup our Jira Cloud instance so that:

- Groups within JC can't be used except by them. Meaning I can't create my own group of people and reference it in the automation.
- Inbound email to Exchange internally housed group mailers appear to be blocked (this is Internet inbound email to a group mailer)

I have a case open with them for trying to work around those issues, but wondered if the community could advise on this idea.

Some details:

- At the end of each automation I want it to send an email to a group of people, about 4 or 5 individuals. The same individuals across all the rules.

- If in the automation rule, I put those people directly into the To,CC, BCC fields, they will receive them.  But that would mean hard coding each of those individuals to every rule.

The idea:

I was wondering if there would be a way of setting up something like a project-wide variable, containing the email addys of the individuals, and then use that variable within the To/CC/BCC field. Or perhaps, if more advanced, a user-array that I could reference.  I suspect this ideas unlikely.. but thought I'd ask.

 

Or if anyone has another idea about how to get email notices to multiple people, without using groups, with messages sent to their own email addresses.


For now, I've no choice but to go through and add each person hardcoded to each rule which is quite annoying.

1 answer

0 votes
Bill Sheboy
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.
August 7, 2023

Hi @adrimars 

A couple of work-arounds you might try are:

  • outside of Jira: create an email distribution list (in your company email system) and use that, or 
  • inside of Jira: create an entity property (perhaps at the project level) to store the list of email addresses, and use that. 

The first approach is simple, and the second is more complicated, and may require using a web request.  Please discuss this with your Jira admin to learn what they think of solution ideas.

Kind regards,
Bill

adrimars
Contributor
August 7, 2023

Thanks Bill.

 

#1 is what I tried first, but although the email system allows internet source email traffic into it (I tested using another account), something about our Jira Cloud instance is blocking it.

Any useful references for "entity property" ?

Bill Sheboy
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.
August 7, 2023

Hmmm...you may want to check if your distribution list accepts external emails.

Regarding some references to try entity properties, here are some below.  There have also been several community posts on using these with rules.

https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Set-entity-property

https://developer.atlassian.com/cloud/jira/platform/jira-entity-properties/

https://community.atlassian.com/t5/Jira-Core-Server-questions/How-do-I-access-a-User-entity-s-properties-set-via-API/qaq-p/92490

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events