You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi there-
One of the automation rules I'm working on is triggered with any of 4 specific fields are changed on an issue. Upon that change, an email is fired and I would like to indicate which of those fields changed.
The current jankiness I'm using looks like this:
{{initiator.displayName}} just made a change to {{issue.key}}.
{{changelog}}
Click below to visit the issue in Jira
{{issue.url}}
I do get the changelog in the email -- it's formatted this way:
{Start date=[ChangeItemBean{fieldId='x', field='Start date', fieldType='null', from='2023-03-27', fromString='27/Mar/23', to='2023-02-01', toString='1/Feb/23'}]}
and I'm wondering if I could clean this up to be more readable by extracting the from and to properties along with the field name at the beginning. If there are multiple fields that can trigger this rule, is there a technique to dynamically know which field was changed or otherwise extract that from the changelog?
Have you successfully done this? Interested in learning how.
Hi @Patrick Davis Try to get Old value and new value of Start Date using below smartvalue :-
Old Value -- {{changelog.duedate.from}}
New Value -- {{changelog.duedate.to}}
Replace duedate with Start date
Thanks,
Vikrant Yadav
Thanks for the reply. This would work great if the rule knew which field was updated when interpreting the changelog values. In this case, there are 4 different fields that can trigger this rule when they are changed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Patrick Davis For this you can try to add 4 rule for 4 different fields, or you can add 4 changelogs smart value for each field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In this thread comments, there is an example of iterating through a webresponse in a branch. You might be able to do something similar
https://community.atlassian.com/t5/Jira-Service-Management/how-to-iterate-and-compare-webresponse-values/qaq-p/1991231
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.