Skip to content

[Bug] jira-count error for 2025 Jira Cloud API #182

@richard-barella

Description

@richard-barella

Describe the bug

I get the error "TypeError: Cannot read properties of undefined (reading 'toString')

I believe that you aren't using the correct endpoint for getting the count of jira issues in the 2025 API. It should be this API: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-approximate-count-post

I don't see any word "approximate" in the main.js file, so I assume you aren't using it.

To Reproduce

  1. Use 2025 api for jira cloud
  2. Create query like this:
```jira-count
project = PROJECT_ID
```
  1. See error

Expected behavior
Show the actual count

Screenshots

Image

Plugin version and platform

  • Version: 1.58.1
  • Obsidian Windows
  • Obsidian Mac
  • Obsidian Linux
  • Obsidian Android
  • Obsidian iOS

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions