Bug 2211173

Summary: Need to be able to detect issues with a migration link
Product: [Community] Bugzilla Reporter: Brendan Conoboy <blc>
Component: ExtensionsAssignee: Jeff Fearn 🐞 <jfearn>
Extensions sub component: RuleEngine QA Contact: Jeff Fearn 🐞 <jfearn>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: unspecified    
Priority: unspecified Keywords: RFE
Version: 5.0   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.0.4-rh88 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-03 00:17:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Brendan Conoboy 2023-05-30 15:43:46 UTC
This relates to: https://bugzilla.stage.redhat.com/page.cgi?id=ruleengine/details/index.html&rule_name=Close%20MigrateToJira%20BZs

The general idea of the rule is to set the Bz to CLOSED/MIGRATED once the Bz has been cloned to the RHEL project.  The rule looks for the external link to an issue in the RHEL project to decide to close.  This morning the rule caused the kill switch to be thrown:

On bugs: 2012885: For Bug 2012885 error: To close a bug as MIGRATED you must have a link flagged as the migration link.

It turns out using the MIGRATED resolution requires a higher bar be cleared: The link needs to be a "migration" link (presumably indicated by the little footprints), but I don't know how to detect that with BRE.  Can you add a way of detecting if a Bz has a migration link?  Then I can update the rule to use it instead of searching for any ticket in the RHEL project.

Comment 1 Jeff Fearn 🐞 2023-06-06 03:23:11 UTC
This will need an extra search field, similar to ext_bz_bug_map.ext_status.

Comment 3 Jeff Fearn 🐞 2023-06-28 04:15:50 UTC
On QA server.

1. Search for bugs with a migration link.

$server/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&f1=has_migration_link&o1=isnotempty&query_format=advanced

Works.

2. Create a BRE rule using this field.

$server/page.cgi?id=ruleengine/details/index.html&rule_name=test%20bug%202211173

Works.

Comment 4 Jeff Fearn 🐞 2023-06-28 23:01:36 UTC
This fix has been deployed to stage Bugzilla for a short public testing phase.

https://bugzilla.stage.redhat.com

Comment 5 Jeff Fearn 🐞 2023-07-03 00:17:37 UTC
This change is now live. If there are any issues, do not reopen this bug. Instead, you should create a new bug and reference this bug.