Script jobs don't show script log UI #9929

Closed
opened 2025-12-29 21:24:34 +01:00 by adam · 2 comments
Owner

Originally created by @alehaa on GitHub (Jul 2, 2024).

Deployment Type

Self-hosted

NetBox Version

v4.0.6

Python Version

3.11

Steps to Reproduce

  1. Create script.
  2. Run script.
  3. Go to Operations > Jobs and click on script job.

Expected Behavior

Seeing the script log view.

Observed Behavior

Seeing the default job details view.

Originally created by @alehaa on GitHub (Jul 2, 2024). ### Deployment Type Self-hosted ### NetBox Version v4.0.6 ### Python Version 3.11 ### Steps to Reproduce 1. Create script. 2. Run script. 3. Go to Operations > Jobs and click on script job. ### Expected Behavior Seeing the script log view. ### Observed Behavior Seeing the default job details view.
adam closed this issue 2025-12-29 21:24:34 +01:00
Author
Owner

@alehaa commented on GitHub (Jul 2, 2024):

As the script model has been changed, its reference needs to be changed in the get_absolute_url() method of the job model, too. Changing the name in this line to script restores the previous behavior.

@alehaa commented on GitHub (Jul 2, 2024): As the script model has been changed, its reference needs to be changed in the [`get_absolute_url()` method of the job model](https://github.com/netbox-community/netbox/blob/4857a87be5bd357b3d583ecb99a7841d75c9da35/netbox/core/models/jobs.py#L122), too. Changing the name in this line to `script` restores the previous behavior.
Author
Owner

@jeremystretch commented on GitHub (Jul 2, 2024):

The job link is working as expected; viewing a job from the jobs list should always return the same view, regardless of the type of job.

FR #15983 is open to also link to the script-specific view as you describe.

@jeremystretch commented on GitHub (Jul 2, 2024): The job link is working as expected; viewing a job from the jobs list should always return the same view, regardless of the type of job. FR #15983 is open to also link to the script-specific view as you describe.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9929