2. Overview
• How to implement a custom UI
• How to implement a REST resource
• Demo
• svn co https://labs.atlassian.com/svn/IPHONE/trunk
Excellent resource - This is a great app, not just because it looks good.
It's also a great resource for JIRA 4.0 REST plugin development.
Matt Doar (PAC - 2 Dec 09)
“
”
Tuesday, November 2, 2010
3. Custom UI
• Why?
• Building Blocks
oServlet Filters
oWebwork actions
oHTML/JS + REST
Tuesday, November 2, 2010
4. This is not a talk about REST!
Tuesday, November 2, 2010
5. JIRA Web-Interface for the iPhone
• Easy to use interface on the iPhone
• Plugins 2 plugin
• Most of the work done client-side
• Custom REST interface
Tuesday, November 2, 2010
7. Some stats
• 2000+ downloads
since November 09
• ~7000 LOC
• 20 20% days to
develop
• 8 features
0
85
170
255
340
11/0902/10
05/10
08/10
Downloads
Tuesday, November 2, 2010
8. Custom UI - Filters
• Redirect certain users
• Inject content into pages
Tuesday, November 2, 2010
9. Custom UI - Define a Filter
• URL-Pattern
• Location
oafter-encoding, before-login, before-decoration,
before-dispatch
Tuesday, November 2, 2010
10. Custom UI - Webwork
• Full MVC UI framework
• Views, Commands, Validation, Templating
• /secure/* is not secure
• roles-required=”admin” does not work
Tuesday, November 2, 2010
26. Demo
• Implement ʻAdd Commentʼ feature
• Requires some client side JS
• Server side REST resource
• Tools
Tuesday, November 2, 2010
27. Summary
• Use HTML/JS as much as possible
oFaster development turnaround
oGood frameworks (jQuery, GWT, jQTouch...)
• If our REST API doesnʼt do it for you...
Tuesday, November 2, 2010