Hi. Can I add only the newest update from a tickets history as information in an automation email?As this is a list contains many different update types, I guess not?
Hi @Harald Heinz
You can look using smart values and specific the option change log.
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--changelog--
Not all information can be used, so be aware of that.
Dear @Harald Heinz
You can use:
{{#changelog}}- {{field}} changed from "{{fromString}}" to "{{toString}}"{{/}}
But this returns all changes, not necessarily just the latest one overall.
If your rule is triggered by:
Then you can access the specific change that triggered the rule:
{{fieldChange.field}}Changed from: {{fieldChange.fromString}}Changed to: {{fieldChange.toString}}
Hello @Harald Heinz
short answer: not as “give me the last line from the History tab”.
That History view is a mixed timeline (field changes, automation edits, workflow actions, etc.). Jira Automation doesn’t expose it as one clean “latest history entry” value you can drop into an email.
What does work in Cloud:
Show the change that triggered the rule
If your rule is based on Issue updated / Field value changed, you can include the changelog of that update:
Last change:{{#changelog.items}}- {{field}}: "{{fromString}}" → "{{toString}}"{{/}}By: {{initiator.displayName}}
This is usually what people actually want: “what changed just now”.
If you really need the generic “last History item”
Then you’re in workaround territory: Automation + REST API (web request, parse response). It’s possible, but it’s not a simple built-in smart value.
https://jira.atlassian.com/browse/AUTO-1377
So: changelog for the triggering update = yes. “last History entry” = no (without API).
complete log is not an option, that is correct.the tiggers would not work in my case. but thanks as the answer is correct though
It looks like you're new here. Sign in or register to get started.