Details
Description
Issue Summary
Upon attempting to utilize the "update" function (rather than "fields") in the advanced field configuring, A4J will incorrectly refuse a valid JSON format as if the 'add', 'set', and 'edit' functions were not present.
Steps to Reproduce
- Create a new rule in A4J using any trigger
- Add an Edit issue action and expand the "Advanced Configuration" settings.
- Input the same JSON featured on the Advanced field editing article.
{ "update": { "description": { "set": "a new description" }, "labels": [{ "add": "test-label" }] }, "fields": { "summary": "woohoo! a new summary" } }
- Upon saving the rule, A4J will provide the following error message on the UI:
Additional fields contains invalid 'update' operations for field 'description'. You can use 'add', 'remove', 'set' or 'edit' for operations.
If you remove the quotes around 'set' and 'add', A4J will accept the JSON as valid, however, the rule will fail during the execution with the following error:
Some errors:
Action details:
Edit issue
Error while parsing additional fields. Not valid JSON.
Expected Results
A4J successfully accepts the JSON format informed on our official documentation.
Actual Results
Valid JSON's are not accepted by the tool, while invalid ones are.
Workaround
Avoid the usage of the Advanced Field Editing feature along with 'update'.
Currently, there is no known workaround for the use of the update function. A workaround will be added here when available