Skip to content

Expose published and author fields #619

@nicolas-rdgs

Description

@nicolas-rdgs

Describe the bug

When I call service.jobs.list(search="my_savedsearch") and I look at the returned Job object, I can't find the published and author keys.

To Reproduce
Steps to reproduce the behavior:

job = service.jobs.list(search="my_savedsearch")[0]
job.state.published -> raise AttributeError
job.state.author -> raise AttributeError

Expected behavior

Must return the date and the user who launched the search

Logs or Screenshots

In comparison, I get the values by making the query manually:

print(json.loads(s.get("/services/search/v2/jobs", output_mode="json", search="search=my_savedsearch").body.read().decode()))

Also, there's a lot more information in the searchTelemetry key than the Job object.

It's possible that the “state” processing doesn't take everything into account.

Splunk (please complete the following information):

  • Version: 9.3.2
  • OS: Fedora 41
  • Deployment: Single instance

SDK (please complete the following information):

  • Version: 2.1.0
  • Language Runtime Version: python 3.13
  • OS: Mac 15.5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions