Hello @Saira
Is that exactly how you are using them, and expecting to get the name of the field that changed? That is not a correct expectation.
Referring to the documentation those smart values will give you the value in the field before and after it was changed.
If you show use the full automation rule and point out where and how you are trying to use the value then we can offer you more specific advice.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So basically I'm adding a comment in the automation when the Jira is updated - like this:
{{issue.key}}'s {{fieldChange.field}} field was updated from {{fieldChange.fromString}} to {{fieldChange.toString}} by {{initiator.displayName}}
but it prints this:
INC-3718's field was updated from to by Saira Nawaz
so Jira ID and initiator's name are displayed, but not the to and from field values or the updated field's name
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please show us the entire rule. The construction of the rule often reveals the cause of the rule to not behave as you expect.
Additionally if you review the documentation for which I provided the link you will see that field is not an available attribute for the {{fieldChange}} smart value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
With the Issue Updated trigger, multiple fields' values may have been changed. If multiple fields' values changed, do you want to report the before and after values of every one of those fields?
Are you wanting to report only the changed values for specific fields?
What problem are you solving by adding a comment to document the before and after values when a field is updated? That information is already recorded in the issue history and available for viewing by viewing the History tab in the issue.
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.