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 get the previous value of the field in jira email automations

Dear All, 

I am working on an automation to send update emails when the value of the "Customer temp" field is changed I have used some smart values for the automation as under

Customer Temperature has Changed from {{changelog.Customer Temperature.from}} to {{issue.fields.Customer Temperature}} !!!

I get the result as "Customer Temperature has Changed from 12821 to Happy !!!"

where i dont understand why I am getting "12821" value from

expected result: "Customer Temperature has Changed from Unhappy to Happy !!!

 

I appreciate your helps in advance. 

2 answers

1 accepted

2 votes
Answer accepted
John Funk Community Leader Dec 28, 2021

Hi Akram,

Since it is only firing on the value of the field changing, try this:

[ {{fieldChange.fromString}} ] to [ {{fieldChange.toString}} ]

Hi @John Funk 

Thanks for your reply, I found the {{changelog.nameofthefield.fromstring}} also useful.

Like John Funk likes this
0 votes
Fabian Lim Community Leader Dec 28, 2021

Hi @Akram Sharifi

What type of customfield is "Customer temp'? Is it a single select field?

Regards

Hi @Fabian Lim 

its a Single select list field. 

thanks for reaching out. 

Fabian Lim Community Leader Dec 28, 2021

You probably have to call .Name or .Value to get the actual value.  Right now, it's picking the ID of the option.

I hope this helps.

I have used both following cases but didn't worked. 

Customer Temperature has Changed from {{changelog.Customer Temperature.from.Name}} to {{issue.fields.Customer Temperature}} !!!

And 

Customer Temperature has Changed from {{changelog.Customer Temperature.Name}} to {{issue.fields.Customer Temperature}} !!!

let me know if i making any mistake.

Dear all

I have found out that using the smart value {{changelog.Customer Temperature.fromString}} is giving me the previous value of the field in automations. 

Suggest an answer

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

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

134 views 1 2
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