The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Interpret Smart Values

David Stokes
Contributor
February 8, 2022

Hi

I've got a number of Jira records and for each, I want to generate an email using Jira Automation that is unique to that record. 

Which fields are shown and the content of the email may be different from issue to issue.  So I've stored what needs to be in the email in a text field of the record and I want that to determine what's in the email.  Here's an example:

Dear {{issue.assignee.DisplayName}}

{{issue.assignee.displayName}} from {{issue.Summary}} has been notified that you will be in contact them for the {{issue.Category Name}} Category.

Please click on the following link
{{issue.url.customer}}

So in Jira Automation for the content field, I've got {{issue.textfield}}

This is what gets sent in the email:

Dear \{\{issue.assignee.DisplayName}}

\{\{issue.assignee.displayName}} from \{\{issue.Summary}} has been notified that you will be in contact them for the \{\{issue.Category Name}} Category.

Please click on the following link
\{\{issue.url.customer}}

So it hasn't interpreted the smartvalues.  Is there anything I can do to force it to interpret the smartvalues?

I hope this makes sense, so ask if you need further details.

Many Thanks
David

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Tim Perrault
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 Champions.
February 8, 2022

Hi @David Stokes 

 

Try this:

Dear {{assignee.displayName}}

{{assignee.displayName}} from {{issue.summary}} has been notified that you will be in contact them for the {{issue.category.name}} Category.

Please click on the following link
{{issue.url}}

Thanks,

Tim

David Stokes
Contributor
February 8, 2022

Hi @Tim Perrault 

Thanks for the quick response.

I've changed text to what you have provided and this is what has come out in the email:

Dear \{\{assignee.displayName}}

\{\{assignee.displayName}} from \{\{issue.summary}} has been notified that you will be in contact them for the \{\{issue.category.name}} Category.

Please click on the following link
\{\{issue.url}}

It's still not interpreting the smart values

Thanks
David

David Stokes
Contributor
February 8, 2022

What I'm trying avoid here is 'hardcoding' the different email contents inside the an automation specific to each record.  I want to be able to specify it in each Jira record.

I'm wondering if there are any special characters I can include in the text to force it to interpret what's in {{}} 

Tim Perrault
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 Champions.
February 8, 2022

I'm thinking we need to use {{issue.key}} so the automation pulls in an issue and can get the details from the issue. Like maybe in the subject line.