Jira Automation - Send an email with key of issue created.

Humberto Gomes
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.
April 12, 2020

Hi,

I'm trying to create a cron rule, using Jira automatin and send an email with the issue key.

 

The creation is completed, the chron also and the email is sent but empty.

 

Step 1: working

When: Scheduled

every 0 17 11 ? * MON,TUE,WED,THU 2020

 

 

Step 2  Working:

Then: Create a new

TaskTask in TEST Template (TEST)

 

Step 3

And: Send email

Name@domain.com

 

Subject:

{{issue.key}}teste teste teste
Hi {{reporter.displayName}}

We're now looking into your issue {{issue.summary}}.

We'll get back to you soon with an update.

{{assignee.displayName}}

 

 

The email received is:

teste teste teste
Hi

We're now looking into your issue .

We'll get back to you soon with an update.

 

 

should be:

TEST-222  teste teste teste

Hi Humberto.Gomes

We're looking into your issue TEST-222

We'll get back to you soon with an update.

Jira Team

 

Can you help?

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
Parvaneh Zand
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.
April 12, 2020

Hi @Humberto Gomes ,

Generally, actions in jira automation follow the trigger issue details. Since your trigger is not an specific issue and it's a cron job, it can't provide an issue key. You should use Branch rule and refer the action to the created issue.

 

brnch.jpg

Humberto Gomes
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.
April 22, 2020

Awesome.

Makes sense.

Easy to solve.

Brilhant.

Like Anurag Mishra likes this
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events