Using JIRA XML, how easy is it to write your own JIRA Issues macro in Confluence?

I know a fair bit about coding in HTML and Velocity but I know nothing about XML. Personally, I think that the jiraissues macro could do with a facelift, and rather than waiting for Atlassian to do it, I was wondering how easy it would be to do it myself. The problem is that I know nothing about XML.

I've had a look at a couple of XML "how-tos" but I've not found them particularly helpful. Given the structured nature of XML, how easy is it to write and apply an XML stylesheet so that my own jiraissues macro in Confluence?

For example, one basic design I'd like to see is to have each item <title> translate to a <h2>, followed by the <description>.

1 answer

This widget could not be displayed.
Penny Wyatt Atlassian Team Apr 21, 2013

I don't know how deep down the rabbit hole you're willing to go, but if XML is the area of uncertainty, how about avoiding XML entirely and using JSON instead, via REST? JSON is a lot easier to parse and can be natively parsed from JavaScript if you want to do things client-side, too.

Thanks for your suggestion, Penny, but I know less about REST than I do about XML. I figured, if the structured XML is readily available whenever I do a query in JIRA using the UI, then implementing some sort of stylesheet to manipulate the appearance of the results is a lot simpler.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published 4 hours ago in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

31 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you