Hello XWiki Community,
I’ve set up Jira in XWiki and installed CKEditor and Jira Macros via the Extension Manager. I added config.extraPlugins = ‘xwiki-jira-paste’; under CKEditor’s advanced settings, but the pasted Jira URLs remain plain text. The standard Jira Macro dialog works and there are no CKEditor console errors.
The XWiki version is 17.30 and the Jira Plugins have the version 10.2.1
Does anyone know what additional steps or compatibility fixes are needed to enable the plugin?
Thank you, Hisham
Hello. I’ve never tried it but it should work as described on https://extensions.xwiki.org/xwiki/bin/view/Extension/JIRA/JIRA%20CKEditor%20Integration/#HActivatingtheplugin
I’ve checked the source code and found that it was coded by @trrenty . @trrenty could you check, in case there’s some bug?
I think you meant that you’ve installed the JIRA CKeditor Integration etxension (since CKEditor is already installed by default in XWiki).
You probably mean 17.3.0.
Do you mean the javascript console?
Thx
Hello. I tested the application on 17.3.0 and it seemed to work fine.
Do you have a jira instance configured in the administration section?
The application only replaces the links pasted from configured instances.
In my case, if i paste a link from https://jira.xwiki.org, it will get automatically converted in a jira macro. However, if I paste a link from any other jira instance, it wont get replaced.
One other aspect to be taken into consideration is that the link must either contain a jira ID (something link NAME-12313) or a jql query parameter (i.e. jql=where assignee is tcaras)
hmm why is that? Does it uses a REST API that requires to be authenticated?
I’d say that this should be documented (if not already) as it’s not intuitive.
Thx
Hello,
I’ve found the problem. After checking the source code, it looks like the authentication doesn’t work only on the configured Jira instances. After I logged in with my Jira account, the plugin worked perfectly.
Thank you for your help!
Best wishes,
Hisham
hmm why is that? Does it uses a REST API that requires to be authenticated?
I figured that would be the most common use case: users pasting links from jira instances that they configured and probably require authentication. It makes a request that loads the configured instance ids.
I’d say that this should be documented (if not already) as it’s not intuitive.
This information is mentioned here https://extensions.xwiki.org/xwiki/bin/view/Extension/JIRA/JIRA%20CKEditor%20Integration/#HUsingtheplugin
I wasn’t aware that it’s common to use the jira macro with links from unconfigured jira instances. We could create an improvement ticket in this regard if users would expect it to work in this manner
I don’t know how common or uncommon it is, but why do you care in the code? Do you have an IF to explicitly not make it work when the user is not authenticated?
If it’s easy to fix, we should fix it IMO.
Thx