Send emails using Automation when new users are created

Commonly we need to notify certain people when new users are created in Jira. It’s possible to achieve it using WebHook and an automation rule, that will be detailed below.

Creating an automation rule

Go to > Project settings > Automation > Create rule

The rule will have the following structure:
Trigger: choose the option Incoming webhook. Automation for Jira will create a Webhook URL, similar to the one below:

Screen Shot 2022-09-06 at 12.31.09.png

And mark the option No issues from the webhook.

Copy the Webhook URL and create a new Webhook using it:

Go to System > Webhooks > +Create a WebHook

Paste the Webhook URL generated by the Automation rule on the URL field, mark the Created event option under User related events and hit Create:

Screen Shot 2022-09-06 at 12.32.34.png

Screen Shot 2022-09-06 at 12.33.34.png

Back to the Automation rule:
Actions: create a Send Web Request action like the example below:

Screen Shot 2022-09-06 at 12.34.26.png

The Web request URL should be: {{webhookData.user.self}}

Create another action to Send email:

Screen Shot 2022-09-06 at 12.35.22.png

This way, every time a new user is added to Jira, an automation notification can be sent to the relevant people.

4 comments

Dominik
Contributor
May 20, 2024

@André Sinatora Does this automation also work if a portal-only customer created himself in Jira Service Management? I tried but it doesn't work. I'd like to receive an email if a new portal only customer exists.
What's behind the red line in the "Send Web Request" -> Authorization -> Basic ..... ?

Like Prajna G Billava likes this
Nick July 26, 2024

@André Sinatora It does not seem to work for accountType customer, correct? Our customers are JIT provisioned accounts and we would like to trigger some rule once customer first signed-in into customer portal (link this new account with an existing asset object by setting User attribute in this objecttype).

Prajna G Billava
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 27, 2024

Hi @André Sinatora , could you please specify what do we have to enter in the Headers field for 

Authorization?

headers.png

André Sinatora
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 27, 2024

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events