This issue has been created
There are 2 updates.
 
 
JIRA Components / cid:jira-generated-image-avatar-3faef3b0-3828-4790-b1bc-e4f881315ff6 JIRA-117 Open

Jira count macro fails with an error when the jira server URL ends with a /

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-d9a44cb0-5141-4a80-aa4d-2b8e37fa8770 Anca Luca created this issue on 15/Jun/26 20:43
 
Summary: Jira count macro fails with an error when the jira server URL ends with a /
Issue Type: cid:jira-generated-image-avatar-3faef3b0-3828-4790-b1bc-e4f881315ff6 Bug
Affects Versions: 11.1.4
Assignee: Unassigned
Attachments: image-2026-06-15-20-43-48-091.png
Components: JIRA Count Macro
Created: 15/Jun/26 20:43
Priority: cid:jira-generated-image-static-major-e1160dd1-4297-4e9a-ad14-1a0bba0c03f2 Major
Reporter: Anca Luca
Description:

How to reproduce:

  • in the administration of your wiki, using the JIRA administration application, configure a jira instance, and have the URL set there end with a /
  • in a page, add a jira macro (any) to display issues from that jira server (using the jira id), with a jql
  • the jira macro should display a listing of issues (based on the provided jql)
  • add a jiraCount macro, with exactly the same parameters - same jira server and same jql

Expected result:

  • the jiraCount macro should display the number of issues that were displayed in the listing of the jira macro with the same parameters

Actual result:

  • the jiraCount macro displays an error, while the jira macro with the same parameters works fine:

_thumb_44961.png

 
 

2 updates

 
cid:jira-generated-image-avatar-d9a44cb0-5141-4a80-aa4d-2b8e37fa8770 Changes by Anca Luca on 15/Jun/26 20:45
 
Description: How to reproduce:
* in the administration of your wiki, using the JIRA administration application, configure a jira instance, and have the URL set there end with a /
* in a page, add a jira macro (any) to display issues from that jira server (using the jira id), with a jql
* the jira macro should display a listing of issues (based on the provided jql)
* add a jiraCount macro, with exactly the same parameters - same jira server and same jql

Expected result:
* the jiraCount macro should display the number of issues that were displayed in the listing of the jira macro with the same parameters

Actual result:
* the jiraCount macro displays an error, while the jira macro with the same parameters works fine:

!image-2026-06-15-20-43-48-091.png|thumbnail!

I checked the URL listed in the error, and the culprit is the double slash in the Jira API URL that is used by jiraCount (I opened it in a new tab and without the double slash it works fine). Apparently, the jira macro does not have the same issue.
Assignee: Josué Tille