Reports - add return output similar to scripts function to reports #6290

Closed
opened 2025-12-29 19:39:01 +01:00 by adam · 3 comments
Owner

Originally created by @ITJamie on GitHub (Apr 4, 2022).

NetBox version

v3.1.0

Feature type

Change to existing functionality

Proposed functionality

The scripts function has a useful feature that allows returning of data as part of the script.
I would like to see this function duplicated into the reports feature.

UI changes: adding output section after table of messages
Code changes: add a serialiser to the reports function and parse report job return data.

Use case

This would allow for return of data eg csv data. or for json data about a set of objects in the report

The scripts example here actually does show using this to make a csv (https://demo.netbox.dev/static/docs/customization/custom-scripts/#example)

This would allow the creation of reports that give an easy to use "export" of csv or json or yaml for consumption outside of netbox

Database changes

No response

External dependencies

No response

Originally created by @ITJamie on GitHub (Apr 4, 2022). ### NetBox version v3.1.0 ### Feature type Change to existing functionality ### Proposed functionality The scripts function has a useful feature that allows returning of data as part of the script. I would like to see this function duplicated into the reports feature. UI changes: adding output section after table of messages Code changes: add a serialiser to the reports function and parse report job return data. ### Use case This would allow for return of data eg csv data. or for json data about a set of objects in the report The scripts example here actually does show using this to make a csv (https://demo.netbox.dev/static/docs/customization/custom-scripts/#example) This would allow the creation of reports that give an easy to use "export" of csv or json or yaml for consumption outside of netbox ### Database changes _No response_ ### External dependencies _No response_
adam added the type: featurepending closurestatus: under review labels 2025-12-29 19:39:01 +01:00
adam closed this issue 2025-12-29 19:39:01 +01:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 5, 2022):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Jun 5, 2022): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@ITJamie commented on GitHub (Jun 6, 2022):

Still valid

@ITJamie commented on GitHub (Jun 6, 2022): Still valid
Author
Owner

@kkthxbye-code commented on GitHub (Jun 6, 2022):

Please read https://github.com/netbox-community/netbox/blob/master/CONTRIBUTING.md#issue-lifecycle

@kkthxbye-code commented on GitHub (Jun 6, 2022): Please read https://github.com/netbox-community/netbox/blob/master/CONTRIBUTING.md#issue-lifecycle
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6290