Uploaded image for project: 'JIRA Components'
  1. JIRA Components
  2. JIRA-46

Failed to retrieve issue from JIRA Cloud instance on an XWiki instance

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 8.6.3
    • None
    • None
    • XWiki 13.10.5, Windows 10, Chrome 102
    • Unknown

    Description

      I have done the following test using a Jira Cloud demo:
      1. I created a Jira Software demo: https://checkingtest.atlassian.net/
      2. I created an issue called TES-1

      3. I tested the same scenarion on both a Cloud and local 13.10.5 XWiki, in global administration, I have installed Jira Macro and Jira Administration 8.6.3

      4. In Other > Jira tab, I have added as ID "test", for URL https://checkingtest.atlassian.net/ , adchirica@gmail.com as user and the password of the Jira Cloud demo. Clicked on Save button.

      5. On a Sandbox page I added the Jira Macro: in the Content section I add the name of the created issue TES-1, in ID I add test , left the other options as default, clicked on Submit and obtained:


      6. I then tested with added URL https://checkingtest.atlassian.net/ instead of ID and also with both entered and the same error appeared:

      org.xwiki.rendering.macro.MacroExecutionException: Failed to retrieve JIRA data from [https://checkingtest.atlassian.net/] for JQL [issueKey in (TES-1)]
      	at org.xwiki.contrib.jira.macro.internal.source.AbstractJIRADataSource.getXMLDocument(AbstractJIRADataSource.java:98)
      	at org.xwiki.contrib.jira.macro.internal.source.ListJIRADataSource.getData(ListJIRADataSource.java:78)
      	at org.xwiki.contrib.jira.macro.internal.JIRAMacro.execute(JIRAMacro.java:87)
      	at org.xwiki.contrib.jira.config.internal.AsyncJIRAMacro.executeCodeMacro(AsyncJIRAMacro.java:99)
      	at org.xwiki.contrib.jira.config.internal.JIRABlockAsyncRenderer.execute(JIRABlockAsyncRenderer.java:121)
      	at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:157)
      	at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:54)
      	at org.xwiki.rendering.async.internal.AsyncRendererJob.runInternal(AsyncRendererJob.java:109)
      	at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:243)
      	at org.xwiki.job.AbstractJob.run(AbstractJob.java:220)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:829)
      Caused by: java.lang.Exception: Error = [Unknown error]. URL = [https://checkingtest.atlassian.net//sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=issueKey+in+%28TES-1%29]
      	at org.xwiki.contrib.jira.macro.internal.source.HTTPJIRAFetcher.retrieveRemoteDocument(HTTPJIRAFetcher.java:116)
      	at org.xwiki.contrib.jira.macro.internal.source.HTTPJIRAFetcher.fetch(HTTPJIRAFetcher.java:75)
      	at org.xwiki.contrib.jira.macro.internal.source.AbstractJIRADataSource.getXMLDocument(AbstractJIRADataSource.java:96)
      	... 12 more
      

      I've seen that there was this error shown in a past issue that is now closed: JIRA-27

      Attachments

        Activity

          People

            Unassigned Unassigned
            AndreeaChirica Andreea Chirica
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: