Skip to content

Commit 98fba8b

Browse files
committed
Fixes #1096 - Ignores '---' values for mapped fields on create
1 parent d6a1ec0 commit 98fba8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jbi/steps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def _maybe_update_issue_mapped_field(
220220
target_value = getattr(parameters, f"{source_field}_map").get(source_value)
221221

222222
# If field is empty on create, or update is about another field, then nothing to do.
223-
if (context.operation == Operation.CREATE and source_value == "") or (
223+
if (context.operation == Operation.CREATE and source_value in ["", "---"]) or (
224224
context.operation == Operation.UPDATE
225225
and source_field not in context.event.changed_fields()
226226
):

0 commit comments

Comments
 (0)