{{fieldChange.fromString}} and {{fieldChange.toString}} not working

Saira August 10, 2023

Anyone able to retrieve the name of the field updated using smart values? They don't work for me

2 answers

0 votes
Saira August 10, 2023

here you go

Saira August 10, 2023

Screen Shot 2023-08-10 at 9.25.35 PM.png

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 10, 2023

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.

Saira August 10, 2023

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

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 10, 2023

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.

Saira August 10, 2023

Screen Shot 2023-08-10 at 9.25.35 PM.png

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 10, 2023

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events