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?
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.
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).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.