After much banging away with bugs and lots of head scratching one some of the Clearspace APIs, I have a basic Jira Issues macro!
The macro output is a Flex widget, and so the plugin must proxy requests (Flex cannot connect off-server without a crossdomain.xml permission file on the remote server.)
{timojira:url=<Jira server XML feed url>}
{timojira} -- without a Jira URL, it will display some sample data (good for troubleshooting, or quick tryout)
Cache, oh how I wanted to implement thee... but alas, another day for you!
Cheers,
Timo
Got it to work after some fiddling. Here is what I found:
Disable or change the settings on the Wiki Syntax Filter for whatever space this is used in -- it is currently inserting extra HTML line breaks ("<br/>") which break the JS code.
Make sure you have your 'jiveURL' property set correctly if you want it to work non-locally.
Just a note, the Wiki Syntax Filter is found in the Admin Console, under Spaces --> Settings --> Filters and Macros --> Filters
Hey Scott -- you're correct, it should have read "Jira server". I posted a few minutes before midnight and my brain was a little fried. Corrected it now. ![]()
Regarding the reason you do not get output, I can't say for sure. Perhaps you can paste in the HTML so I can have a look?
I was developing on CS 1.7 beta 2 - I have yet to test with the released 1.7. (I'm not saying that is the problem, just that it is another variable.)
-T
Tim,
In the method TimJiraAction#xmlfeedcache you mention that you abandon this support do to limitations with PluginProperties. Instead of using plugin properties you could create a custom database table. The plugin guide discusses how to add your own custom database tables and acquiring connections.
Thanks for having a look, Dolan.
I just fired up my server locally, and the code still works, and the Wiki syntax filter is turned on here.
(Aside -- I did find a bug, insofar as the search url I was testing is no longer present on the Jivesoftware Jira server. Flex throws a nasty error that isn't trapped or handled.)
Where are the extra <br>'s being inserted?
-Tim
Hey AJ -- RE: custom DB tables for cache.
Absolutely, custom DB tables is one of at least a dozen different ways to cache. ![]()
I had opened a thread here asking about leveraging the Coherence cache built in to Clearspace, and in the meantime there was a suggestion to just use PluginProperties. I didn't have much time before the contest deadline, so I went for the simple PluginProperties. Turns out it wasn't as simple as that, and I ended up with DB errors due to values "too long" in the PluginProperty hash.
If I were to continue development, I probably would go with the DB. I just did not have enough time.
The source code is open and available, so anyone is welcome to modify and improve it if they find it useful. ![]()
Cheers,
Tim
Tim,
Congratulations on winning our first ever plugin contest!
Cheers,
Sam
Hi Tim,
I disabled the Wiki Syntax Filter and the Flex widget appeared. No data though. I can see the feed if I paste in the url in FireFox.
I'd like to give you the html output, but I do not want to pollute the comment space here with it. Can I send it to you via PM?
Thanks,
Scott
Hey Scott -- sorry for the delay, I've been traveling and sick the past week. Feel free to send me the info via PM and I'll see if it makes sense.
If you just put in you should get the sample data, does that work?
-T
This has the potential to be amazing--but I also can't get it to work. Have disabled syntax filter and see the widget, but get no data even with just
Hey Jay -- what version of Clearspace are you using?
Scott sent me a PM, but all I could make out was that he was using Clearspace X 1.7 (the mesg HTML was mangled by clearspace so bad that I couldn't even reply, the form was screwed)
I see some fixes have been made for v1.8... so I may wait until that is released, and then try to get to the bottom of the problem between my dev system (Clearspace 1.7b2) and a "stable" release.
Do you have the base url set? (view source and send me what "serverbase=???"
Do you get anything if you try to grab the sample data directly?
http://serverbase/plugins/timojira/resources/sample_data_small.xml
-T
-T
1.7.0
Where exactly do I find the base url setting? Can you give me the step by step?
No, I tried using that URL and although the xml loads fine your widget doesn't display any data
Hello all,
We are seeing the same issue as well. We have CS 1.7 running and we don't even see the test data. We have tried turning off the Wiki Syntax Filter as well, but still not working.
Here is the stack trace we got from the flash player:
[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://mycompany.mydomain.com/clearspace/timojira!xmlfeed.jspa?xmlurl=/plugins/timojira/resources/sample_data_small.xml"]. URL: http://mycompany.mydomain.com/clearspace/timojira!xmlfeed.jspa?xmlurl=/plugins/timojira/resources/sample_data_small.xml"]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at ::DirectHTTPMessageResponder/errorHandler()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()
Any help will be grately appreciated.
Thanks,
--Abby
I'm hoping to have some time over the holiday weekend to fire up CS 1.8 (skipping from 1.7betaII) and get things running there.
As I asked Jay above... can you please send me this info:
Do you have the base url set? (view source of a page with in it and send me what "serverbase=???")
Do you get anything if you try to grab the sample data directly?
Hit this URL:http://<serverbase>/plugins/timojira/resources/sample_data_small.xml
Jive folks -- is there any way to have just the plugin-output be immune to the wiki-Syntax filter? Is there some trick to sending output that won't be syntax filtered?
Thanks,
Tim
id=1060&serverbase=https://jive.mydomain.co.uk/clearspace&title=Jira Issues&xmlurl=https://jive.mydomain.co.uk/clearspace/plugins/timojira/resources/sample_data_small.xml",
No, it doesn't work with the sample data either.
Ah, okay, that helps explain a bit. I see you're on an HTTPS server - something I never tested.
You said "it doesn't work with the sample data", but do you see the sample XML when you go to the XMLURL in a browser?
https://jive.mydomain.co.uk/clearspace/plugins/timojira/resources/sample_data_small.xml
I don't know if the Flex client can pull data from an HTTPS url.
-Tim
Hello Tim, is there any plan for a new version with cs2 compatibility?
Thanks,
André
Hi,
Cool plugin! I can't get it to work though :<
In the above document, you mention 'jive server XML url'. I presume you mean 'jira'?
When I use the JIRA XML url, I get no output. If I view source, the macro;s output is there, but it is not displayed.
I'm running CS 1.7
Thanks,
Scott