I’m working with several custom fields in Jira, all of which use the Datepicker field type:
cf12085
cf11921
cf11920
Automation Rule:
When a user updates the Übergabedatum field and the new date is later than the current UAT Due, Jira Automation updates both UAT Due and Contract Start accordingly.
This part works perfectly.
Issue:
After the update, an email should be sent that includes both the previous and new values of all three fields.
In the Jira Cloud issue history, all changes are correctly logged:
However:
In the email body, only the change made by the user to Übergabedatum is included.
It seems that the smart value {{changelog}}
only captures the user-initiated change, and not the ones made by the automation rule.
Question:
Is there a way to access all field changes, including those made by automation, and display them separately in the email body — ideally showing both the old and new values?
The screenshots show what i found in web, Ai, etc and tried.
You are correct that the {{changelog}} smart value, when accurate, only contains information about the fields which changed for the specific rule's trigger.
To do what you ask, a rule could:
And, please experiment to confirm the {{changelog}} actually shows the prior value for your field(s), such as with:
{{#changelog.yourField}}{{fromString}}{{/}}
And after editing the work item, add the Re-fetch Work Item Data action to refresh the data the rule has from the cloud in order to provide the current values.
Kind regards,
Bill
Hi Bill,
thank you for your reply - it works, and i confirm
{{#changelog.Übergabedatum}}{{fromString}}{{/}}
shows the value.
But how can i format the date for this value?
Kind regards,
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill,
found it.
{{fieldChange.fromString.toDate.format("dd.MM.yyyy")}}
thank you
Markus
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.