Open jonathanwehner opened 4 days ago
@jonathanwehner Thanks for the report. I think this is a bug in the Xray API. I'll try to reproduce and open an internal bug report.
@alexhung When using the API outside of TF, The following body successfully creates an ignore rule:
{
"notes": "ignore rule test",
"expires_at": "2024-10-19T12:29:59-06:00",
"ignore_filters": {
"licenses": [
"unknown"
],
"builds": [
{
"name": "my-test-build",
"version": "1",
"project": "cov"
}
]
}
}
Omitting the project key in the build filter causes the same error experienced with the TF ignore rule creation.
Describe the bug When creating an ignore rule with a project_key, if a build filter is included in the ignore rule, the project key is not applied to that filter, which creates an error within Xray. If the build filter does not include a project key, Xray treats it as a global build filter, which is not allowed for a project specific ignore rule. This mismatch causes the following error in Xray:
Requirements for an issue
Expected behavior I can create project specific ignore rules with build filters.