I'm facing an issue with JIRA Automation where I cannot extract the `fromString` and `toString` values from the changelog for the "Fix Versions" field, even though the raw changelog data shows the changes are present. I've tried several troubleshooting steps, but I'm still getting empty output when iterating over the changelog. I would appreciate any insights or suggestions to resolve this issue.
I'm trying to build an automation rule that logs or processes changes to the "Fix Versions" field (e.g., adding or removing versions). Specifically, I want to access the `fromString` and `toString` values to determine what versions were added or removed. However, when I try to iterate over the changelog using smart values, I get empty output, even though the raw changelog data is populated.
When I edit an issue and add or remove a "Fix Version" (e.g., add `v1` or remove `v2`), the audit log shows the following:
Based on the raw changelog data, I expect the following output for Log Action 2:
And for Log Action 3:
I’ve tried the following to diagnose and fix the issue:
1. Verified Trigger:
- Confirmed that the trigger is "Field Value Changed" with "Fix Versions" selected.
- Tested by manually editing an issue to add/remove "Fix Versions" and confirmed the rule is triggered (visible in the audit log).
2. Logged Raw Changelog:
- Confirmed that the `{{changelog}}` smart value shows the expected data, as shown in the log output above.
3. Checked Smart Value Syntax:
- Used `{{#changelog.fixVersions}}` to access "Fix Versions" changes, which should match the internal field ID `fixVersions` in the changelog.
- Tried alternative syntax, such as `{{#changelog.Fix Version}}`, but it also produced empty output.
4. Logged Full Issue Data:
- Added a log action to output `Full issue data: {{issue}}`, which shows the issue details but doesn’t help with changelog access.
1. Why is the `{{#changelog.fixVersions}}` smart value producing empty output, even though the raw changelog shows the data is present?
2. Is there a bug or limitation in my version of JIRA that affects changelog processing in automation rules?
3. Are there alternative ways to access the `fromString` and `toString` values from the changelog?
4. Could this be related to permissions, field configuration, or customizations in my JIRA instance?
Hello @jprieto
I'm not able to take time to address everything in your post but I can address this one part.
The changeLog smart value doesn't support iterating of the fields list. You have to explicitly reference each field by name or ID; i.e. {{changeLog.fixversions}}
I did some experimentation and found syntax that works. I think the problem is you ended the iteration command with {{/changelog}} when you should use just {{/}}. The following works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Trudy Claspillhank youI did not think to try "Fix Version", I've been relying on "fixVersion". I really appreciate your help.
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.