Jira gadgets development - java

I need to develop some jira gadget.
The gadget must have a chart and the possibility to insert external data and diplay it in the chart.
I have been trying the tutorial on atlassian documentation but I don't see any instruction on how to insert charts and how to do it, I think are made with JQuery (if it's correct, there are sample to use? I'm not really in to JQuery). Another problem that I found, is that there is no much explenation on how to get data from Jira (directly). I have seen the "jira api" (all the java interfaces) but I couldn't really get them work.
Anybody that know some better tutorial, gadget source example or that can help me on getting started?
Thanks.

I agree, developing JIRA gadgets with charts is harder than it should be. I have spent some time recently creating a plugin for a client that uses the JIRA system gadgets with some changes and it has been too much work. The charts in JIRA gadgets are created using JFreeChart.
If you can use an external visualization library such as Google Visualization then this example may help: https://labs.atlassian.com/wiki/display/JUA/JIRA+User+Activity
Change the pom.xml to refer to JIRA 4.2 at the bottom in two places and it compiles fine using the usual Atlassian PDK.
~Matt

Related

How to record/capture voice/video for Vaadin application

I am starting to play around Vaadin framework for my project.
The goal is to have simple functionality to record voice or if possible video and later on save in an SQL database.
What I would like to know how do I create new components for this? Is there already component available that I can use for simple recording?
I found Audio and Video classes, but they are for playback.There are no add-ons (Vaadin site) I am aware of that takes care of this. The java libraries I found will only record in the server side (where the app lies). Any guidance is much appreciated.
There aren't already built-in ways for this goal, and it was a really tricky one in the past year in general for a web developer.
Best shot is to develop your own add-on based on the new media HTML5 functionalities.
A good start could be this
http://www.html5rocks.com/en/tutorials/getusermedia/intro/
and for vaadin this chapter and following
https://vaadin.com/book/-/page/gwt.javascript.html

Transitioning from Java to Google App Engine

I am writing a Java program for my workplace, to help catalog pricing with several parameters involved. The current program implements JComboBox, along with other Container objects.
I have realized that our workstation will not run a Java program through Windows due to protective limitations, so I am hoping to transition to Google App Engine, since we can load websites much more freely.
The problem I have run into is that JComboBox doesn't run through Google App Engine. In fact, none of the Containers I was using will work in Google App Engine. The tutorials on Google Developers haven't provided the information I need.
Where can I find information on what objects I can use in Google App Engine to simulate a GUI with pop-up menus and buttons?
(I am using the Google Plugin for Eclipse.)
Maybe this link will help you, it lists all compatible frameworks: http://code.google.com/p/googleappengine/wiki/WillItPlayInJava
For a higly responsive GUI, I suggest you take a look at the GWT: http://www.gwtproject.org/examples.html
In a nutshell: GWT allows you to write web applications with Java. Some/all of the Java is converted into JavaScript for better usability.
If you want to use Google App Engine (GAE) you can either use GWT for a standard GUI or a Java Webframework like Vaadin or JSF.

Need to display data queried from GAE datastore in a nice way

I want to display data queried from GAE datastore in a nice way (graphs, etc.)
What is the best way to do it?
As I'm already working with GAE, perhaps there is a google API for that? The only thing I found online is Chart.js but I need to channel the JS into java which seems complicated.
Any advise will be welcome, Thanks!
I think a better way is to do the charts from the browser not the server. Just pass your data to the js and use google charts to display them. There are tons of examples and a playground for google charts.
GWT is a natural web front end for GAE applications---the Eclipse Google plugin integrates GWT with GAE, and the GWT tutorial includes a section on GAE. Several charting libraries are available, for example, http://code.google.com/p/gwt-google-apis/wiki/VisualizationGettingStarted. Moreover you can build your own in HTML5 with the GWT Canvas.

Chart and plotting API for GWT

I am trying to find a chart and plotting api that can be used in GWT using java, not javascript. The only problem I am having is the ones I have found require an internet connection which where this code will go cannot have an internet connection. Does any one know of such an API? Here are that ones that I found, but again can't use.
https://code.google.com/p/charts4j I know this one requires a connection.
http://code.google.com/p/gwt-google-apis/wiki/VisualizationGettingStarted
Not 100% sure on this one. If anyone has used it and can let me know if it requires a connection let me know. Also if anyone know how to get java swing to work in GWT that would be awesome.
Thank you
I just finished a little presentation on that topic. In there, I'm taking a short and somewhat subjective look at:
clientsidegchart
gflot
dojox.charting
Ico (and other Raphael based libs)
GXT charts
Smart GWT HTML5 Charts
FusionCharts
amCharts JavaScript Charts
Google Chart Tools API
JFreeChart (and other server side libs)
Only the last two of them require an active internet connection.
Here's the link to a PDF snapshot of the presentation: https://docs.google.com/open?id=0B0oR9hvG2VjoRDZZR20zYjVLalU
Client-side GChart. All in your app - no loading visualizations from external servers.
This is another open source api for charts in GWT hosted on http://code.google.com/p/gwt-rcharts/ you may find it useful. The API works on SVG/VML specification. You may find it quite easy to implement and use. You may find the demo at http://gwt-rcharts.appspot.com/

AppEngine Download Graph

I use AppEngine to host an Eclipse update site. I would like to keep track of the number of downloads of each version over time. Searching for ".*plugins.*jar" in the AppEngine access logs gives me a rough idea but the logs only go back a couple of months.
Is there any easy library which I can use to graph my downloads? I'm sure I could roll my own but I would like to have pretty graphs and feel like this may be a problem which has already been solved.
I don't know any libraries that would do the tracking for you on downloads on GAE. But if you decide to log the downloads yourself I would suggest using Google Chart Tools to visualize the data. It's really easy to build really nice looking charts. I especially like the playground where you can quickly try different charts.
I have implemented some code which met my requirements. I haven't packaged it nicely but you can start by looking at these files:
https://github.com/mchr3k/org.intrace/blob/master/intrace.appengine/war/downloads.jsp
https://github.com/mchr3k/org.intrace/blob/master/intrace.appengine/src/org/gaecounter/CountDownloadsFilter.java
https://github.com/mchr3k/org.intrace/blob/master/intrace.appengine/src/org/gaecounter/data/Counter.java
https://github.com/mchr3k/org.intrace/blob/master/intrace.appengine/war/WEB-INF/web.xml

Categories

Resources