Ajax variables in Atlassian Bonfire for JIRA to access session state

If you didn’t know already, you can insert variables into your issues with Bonfire. It comes with four default variables: cookies, useragent, title, url. You insert them into your issue summary like so {useragent}, and Bonfire will replace it with something like this:

*Mozilla/5.0 (Windows NT 6.1; WOW64)….*

Or for the pictorially inclined:

You can read more about it [here](http://confluence.atlassian.com/display/BONFIRE/Templates+and+Variables). What I’m more interested in is creating custom variables. These vanilla variables are fine indeed, but often you need more debugging information before you can proceed to fix the issue. After the break I will show you how to create your own Ajax requests *in Bonfire* to get more complex information about your users (in particular **session** variables!)

Continue reading

jColourStrip: A jQuery Gradient Colour Bar

Here’s a fun little plugin I wrote. I wanted some really neat syntax to display little coloured bars that go from 0% to 100% width and as they grow they change colour from say red to green.

It’s very tiny, and easy to use.

* [Demo](http://mikemurko.com/demos/jColourStrip/demo.html)
* [Download .js](http://mikemurko.com/demos/jColourStrip/jColourStrip.js)
* [Download .zip](http://mikemurko.com/demos/jColourStrip/jColourStrip.zip)

Here’s all the syntax you need on your page to make it work (Note **0.2** is the percentage of the bar that is complete):

$('.default').jColourStrip();
<div class="default" title="0.2"></div>