Hi everyone,
I’m using Jira Automation to revert unauthorized changes to custom fields (based on Atlassian’s “).
It works fine when I use only one field, but when I add multiple custom fields with different types into the same rule, I start getting errors and data loss.
Example:
Location (Select List – multiple) works alone
When I add a Number field, Location becomes empty and audit log shows type conversion errors.
I have around 40 custom fields (selects, number, user pickers, text, date, etc.).
What is the best practice to revert unauthorized changes when many fields with different types are involved?
Should this be split by field type (separate IF + Edit actions)?
Any guidance would be appreciated. Thanks!
Hi @nida ergenç ,
You probably should convert the change string to a number for the failing field.
{{fieldChange.fromstring.asNumber}}
See here
Hi @nida ergenç
Yes, and...to the suggestions from @Rudy Holtkamp ...and without seeing the specifics of your rule's Edit Work Item actions:
A challenge for this scenario is knowing which field changed to understand which type conversion to use for reverting the value. The changed field usually may be found from the entire {{changelog}} entry supplied to the rule, but that may be unreliable for cases when multiple fields change at once...and for fields with known defects in the changelog.
You describe wanting to handle 40 custom fields in the rule, and thus I expect this rule to be brittle / prone to errors from any simple typos (or when there is an Atlassian automation outage impacting rule triggering...as just happened last night).
I have two specific suggestions:
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.