Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/retasc/models/prerequisites/jira_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def _skip_user_modified_fields(issue: dict, to_update: dict, context) -> dict:
item["fieldId"]: context.jira._get_user_identifier(change.get("author", {}))
for change in changelog
for item in change.get("items", [])
if "fieldId" in item
}

skip_fields = {
Expand Down
13 changes: 13 additions & 0 deletions tests/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,19 @@ def test_run_rule_jira_issue_skip_update_user_modified_fields(factory, mock_jira
},
],
},
{
# Parent/subtask link changes have no fieldId and
# aren't a field ReTaSC can manage; must be ignored.
"author": {"key": "alice"},
"created": "2025-01-01T03:00:00.000+0000",
"items": [
{
"field": "IssueParentAssociation",
"from": None,
"to": "TEST-2",
},
],
},
],
},
}
Expand Down
Loading