NAME

WebService::Bugzilla::BugUserLastVisit - Bugzilla BugUserLastVisit object and service

VERSION

version 0.001

SYNOPSIS

my $visits = $bz->bug_user_last_visit->get;
for my $v (@{$visits}) {
    say 'Bug ', $v->bug_id, ' last visited: ', $v->last_visit_ts;
}

# Update last-visit for a single bug
$bz->bug_user_last_visit->update(12345);

# Bulk update
$bz->bug_user_last_visit->update_bugs(12345, 67890);

DESCRIPTION

Provides access to the Bugzilla Bug User Last Visit API. Records track when the authenticated user last visited each bug.

ATTRIBUTES

All attributes are read-only.

bug_id

Numeric ID of the bug.

last_visit_ts

ISO 8601 datetime of the last visit.

METHODS

get

my $visits = $bz->bug_user_last_visit->get(%params);

Fetch last-visit records for the authenticated user. See GET /rest/bug_user_last_visit.

Returns an arrayref of WebService::Bugzilla::BugUserLastVisit objects.

get_bug

my $v = $bz->bug_user_last_visit->get_bug($bug_id);

Fetch the last-visit record for a specific bug.

Returns a WebService::Bugzilla::BugUserLastVisit, or undef if none.

update

my $v = $bz->bug_user_last_visit->update($bug_id);
my $v = $visit->update;

Update the last-visit timestamp for a single bug.

Returns the updated WebService::Bugzilla::BugUserLastVisit.

update_bugs

my $visits = $bz->bug_user_last_visit->update_bugs(@bug_ids);

Bulk-update last-visit timestamps for multiple bugs.

Returns an arrayref of WebService::Bugzilla::BugUserLastVisit objects.

SEE ALSO

WebService::Bugzilla - main client

WebService::Bugzilla::Bug - bug objects

https://bmo.readthedocs.io/en/latest/api/core/v1/bug-user-last-visit.html - Bugzilla Bug User Last Visit REST API

AUTHOR

Dean Hamstead <dean@fragfest.com.au>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2026 by Dean Hamstead.

This is free software, licensed under:

The MIT (X11) License