Bug 2211173 - Need to be able to detect issues with a migration link
Summary: Need to be able to detect issues with a migration link
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Bugzilla
Classification: Community
Component: Extensions
Version: 5.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jeff Fearn 🐞
QA Contact: Jeff Fearn 🐞
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-30 15:43 UTC by Brendan Conoboy
Modified: 2023-07-03 00:17 UTC (History)
0 users

Fixed In Version: 5.0.4-rh88
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-03 00:17:37 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.