Automation. Insert past field value into comment

Evgeniy S_ May 11, 2022

Dear community, hello.
Sorry if the question was, did not notice.

Please tell me how to solve the problem:
When changing the "Description" field, you need to:
- Comment on the task that the description has been changed.
- In the comments, indicate what's new has been added to the description.

I created a comment rule, but I can't display the old value of the field there, which was before the change.

The ideal option for me is to display in the comment the difference between the old description and the new one.
If this is not possible, please suggest how I can display the old value of the field in the comment.

Rule screenshot:

image.png

2 answers

2 accepted

1 vote
Answer accepted
Tessa Tuteleers
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 11, 2022

Hi @Evgeniy S_ , 

 

you can use the following: 

Value before edit:  {{#changelog.description}} {{fromString}} {{/}}

Value after the edit:{{#changelog.description}} {{toString}} {{/}}

Showing a diff between the two is not a built in feature however. 

- Tessa

Evgeniy S_ May 11, 2022

Great, it works. Thank you. 🎉

1 vote
Answer accepted
Garrett McCreery
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.
May 11, 2022

Hi Evgeniy S_

You should be able to accomplish this by using the ChangeLog smart value field. Documentation here:

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

Evgeniy S_ May 11, 2022

Thank you, I understood.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events