Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,296,033
Community Members
 
Community Events
165
Community Groups

Jira Automation: How to reference a newly created issue key in an email

Dear all , 

i have created an automation where upon creation, i am assiging the ticket to me, change a field and put a comment.

Then i am triggering an email and i am trying to get the ticket number in the subject or the email body. 

However , i am not able to get the result i wish for.

Here is my workflow : 

2022-05-25_16h06_13.png

I have read following threads : 

https://community.atlassian.com/t5/Jira-Software-questions/Jira-Automation-How-to-reference-a-newly-created-issue-key-in-an/qaq-p/1537181

https://community.atlassian.com/t5/Jira-Software-questions/Jira-Automation-Send-an-email-with-key-of-issue-created/qaq-p/1347484

But i could apply the solutions.

Thanks,

Dimitris

1 answer

1 accepted

1 vote
Answer accepted

Hi @Dimitrios Papadopoulos 

The {{createdIssue}} and {{createdIssues}} smart values apply for any issues you create while the rule is running:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--createdIssue--

To access the issue which triggered the rule, just use {{triggerIssue}} or just {{issue}} for the rule you showed.

Kind regards,
Bill

Hi @Bill Sheboy  , many thanks for the fast reply. 

I already have the {{issue.key}} in the rule here : 

 

_2022-05-25_16h06_13.png

But it does not work. 

I tried {{triggerIssue.key}} and it worked like a charm ! Much appreciated , thank you !

Like John M Funk likes this

I am glad that helped, and...

Did you note that you misspelled it as {{issuse.key}} as that was probably another problem?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,512 views 37 44
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