update_artifact_textflex_carriage_return.py
Artifact updates done via the UI and CLI/SOAP were found to be saving the text flex field data (that span multiple lines) inconsistently with the \r\n
and \n
CRLF characters respectively. This caused dummy updates to the text flex fields on subsequent artifact updates even if the fields were not updated.
This issue was fixed in TeamForge 20.0. However, you can optionally run the update_artifact_textflex_carriage_return.py
script in case you want to fix the existing text flex field data to avert any such dummy updates from happening to existing artifacts in the future.
Usage
Use the following command to run this script.
[RUNTIME_DIR]/scripts/update_artifact_textflex_carriage_return.py [[--run|-r] | [--projectId|-p] | [--trackerId|-t] | [--help|-h]
Parameters
Paramater | Description |
---|---|
-r | --run | Run the script to fix all the artifacts. Note that the script might run for quite a long time depending on the number of artifacts you have. |
-p | --projectId | Run the script to fix the artifacts in a specific project. |
-t | --trackerId | Run the script to fix the artifacts in a specific tracker. |
-h | --help | To view help information for the script. |
This script was added in TeamForge 20.0.