Skip to content

Commit

Permalink
Eliminate quotes from text data in custom field (#66)
Browse files Browse the repository at this point in the history
Without quote in text type

Co-authored-by: satoshi.hirose <satoshi.hirose@H6PGHGLX6J.local>
  • Loading branch information
satoshihirose and satoshi.hirose committed Jun 26, 2023
1 parent 26f9aeb commit ee09a42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions entrypoint.sh
Expand Up @@ -130,8 +130,9 @@ function updateFieldScope() {
log="$log\n\n$nameField: $fieldID"
case $typeField in
'text')
log="$log\nUpdating text field: $nameField with value: $valueField"
response=$(updateTextField "$PROJECT_UUID" "$PROJECT_ITEM_UUID" $fieldID "$valueField")
valueFieldWithoutQuotes=$(echo $valueField | sed 's/\"//g')
log="$log\nUpdating text field: $nameField with value: $valueFieldWithoutQuotes"
response=$(updateTextField "$PROJECT_UUID" "$PROJECT_ITEM_UUID" $fieldID "$valueFieldWithoutQuotes")
log="$log\n$response\n"
;;
"number")
Expand Down

0 comments on commit ee09a42

Please sign in to comment.