Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to send an email using a jira automation to an email address received in webhook payload?

How to send an email using a jira automation to an email address received in webhook payload?

Requirement: We want to call jira automation from external application which will send payload that contains email addresses to which email has to be send. Please help me to setup such jira automation rule. 

1 answer

0 votes
Hana Kučerová Community Leader Mar 15, 2021

Hi @Mayur Mehta ,

welcome to the Atlassian Community!

Did you try to use Incoming webhook trigger? There is {{webhookData}} smart value - you should be able to use it to get the values from the request.

Hello Hana,

Thanks for your answer. 

Could you please provide more details on the implementation side ?

How do I extract email address from the payload and use it in the recipient field of an email action in jira automation rule? 

Hana Kučerová Community Leader Mar 17, 2021

Hi @Mayur Mehta ,

how exactly does your payload look like? Thank you.

@Hana Kučerová 

My payload is as below

{

"id": "123",

"name": "abc",

"message": "test"

}

 

I want to send an email only when message = "warning"

Hana Kučerová Community Leader Sep 20, 2021

Hi @Mayur Mehta ,

thank you, but to be honest, I don't understand it now. I thought the recipient of the email should be obtained from the payload, but threre's only id, name and message.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

How we use Jira Service Management for our recruitment process! - Part 2

It is never about setting up a process and being done with it. Rather, the focus should always be on optimizing it for the best outcomes. Thus, we didn’t stop at setting up JSM for our recruitment pr...

194 views 0 5
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you