Hello,
I am trying to write an automation that is triggered by a field value change for 4 fields, all date changes.
I'd like to add a comment to the issue displaying the changes made to the specific field. I was able to get this working in an automation using the {{field.Change}} smart value, but only when looking at one value. Is there a way to combine the smart values to look for the specific fields that changed?
This is my current comment with smart values when looking for one field.
The following dates have changed:
{{fieldChange.field}}
{{fieldChange.fromString}} to {{fieldChange.toString}}
How can the other field values be added to this? would it be, {{fieldChange.customfield_xxxxx.fromString}} to {{fieldChange.customfield_xxxx.toString}}
I've been trying to get this to work as well. {{fieldchange}} only seems to work for one change and not multiple, and I don't know how/if to {{changelog}} can identify multiple custom fields that have changed?
Could someone provide an example of how this can work in Jira Software?
Hi @Gabi G
You are correct that {{fieldChange}} captures the first change and {{changelog}} is the list of changes, as described here: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--changelog--
You may reference your custom fields by name (or custom field ID) in changelog, and comparing to check if {{toString}} is non-null will indicate a change.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the quick response. So I would have to write a separate changelog query for each custom field that has potentially changed?
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Bayer
You have a couple of options on this need:
There examples of both methods on this documentation page: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.