This issue has been created
 
 
JIRA Components / cid:jira-generated-image-avatar-7c33e9d1-ac9a-4dbe-90c9-0107cf37f788 JIRA-116 Open

Jira Count not working when using a jira cloud server

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-a68585ef-6ce0-43bd-a623-40422b8a54b9 Lucian Chevereseanu created this issue on 24/Apr/26 11:11
 
Summary: Jira Count not working when using a jira cloud server
Issue Type: cid:jira-generated-image-avatar-7c33e9d1-ac9a-4dbe-90c9-0107cf37f788 Bug
Assignee: Unassigned
Created: 24/Apr/26 11:11
Priority: cid:jira-generated-image-static-major-583d574d-bf1c-43d4-b579-567dddfd6dc5 Major
Reporter: Lucian Chevereseanu
Description:

When trying to use the Jira Count macro, the following error regarding the requested API being removed:

Failed to execute the [jiraCount] macro. Cause: [Error code = [410], Error message = The
 requested API has been removed. Please migrate to the 
/rest/api/3/search/jql API. A full migration guideline is available at 
https://developer.atlassian.com/changelog/#CHANGE-2046 URL = https://jeancloudvandamme.atlassian.net//rest/api/2/search?maxResults=0&jql=project+%3D+test+AND+created+%3E%3D+-72h]. Click on this message for details.

....

Caused by: org.xwiki.contrib.jira.macro.JIRAConnectionException: Failed 
to parse JIRA JSON content [Failed to get JIRA content for https://jeancloudvandamme.atlassian.net//rest/api/2/search?maxResults=0&jql=project+%3D+test+AND+created+%3E%3D+-72h]

 at wiki:xwiki//org.xwiki.contrib.jira.macro.internal.HTTPJIRAFetcher.fetchJSON(HTTPJIRAFetcher.java:113)

 at wiki:xwiki//org.xwiki.contrib.jira.count.internal.JIRACountMacro.execute(JIRACountMacro.java:117)

 ... 183 more

Caused by: org.xwiki.contrib.jira.macro.JIRAConnectionException: Error code = [410], Error message = The
 requested API has been removed. Please migrate to the 
/rest/api/3/search/jql API. A full migration guideline is available at 
https://developer.atlassian.com/changelog/#CHANGE-2046 URL = https://jeancloudvandamme.atlassian.net//rest/api/2/search?maxResults=0&jql=project+%3D+test+AND+created+%3E%3D+-72h

Tested using the latest version of Jira macro, 11.1.4 and XWiki 16.10.5