Discussion:
Best way for XML input/output into JIRA
f***@atlassian.com
2008-02-27 22:05:00 UTC
Permalink
Hi,
I am very new to JIRA (just started with it this week), and am wondering what is the "best" approach for pushing XML data into/out of JIRA (if it is at all possible)?

Basically, I'd like an external source XML data push to trigger an Issue being created, and when the issue is closed (or updated), JIRA pushes an XML data sheet to an external source. Is there any optimal way to accomplish this?

Thanks!

-TK
--
Post by takeshi.kovacs - online at:
http://forums.atlassian.com/thread.jspa?forumID=46&threadID=23905
f***@atlassian.com
2008-02-27 22:19:37 UTC
Permalink
There isn't really a way to do this naturally, you'll need to write some (possibly quite heavy) code to do this.

To get you started though, my first thought would be to look at Jelly scripts - these are xml format scripts that allow you to do quite a lot within Jira, and I suspect that they would get you quite close to the "import from X to Jira" side. You'll certainly need to reform the incoming xml, but that shouldn't be too hard. See http://www.atlassian.com/software/jira/docs/latest/jelly.html

For outgoing, I think you might be looking at having to write a workflow post-function to create, export and push the xml out. You could also write a "listener" if you wanted to trap "edit" transactions as well as workflow transitions. I know that there are xml functions in the API somewhere because Jira already has RSS and XML views of issues, but I'm not sure where to find them - never needed to yet.
--
Post by broughn2 - online at:
http://forums.atlassian.com/thread.jspa?forumID=46&threadID=23905
f***@atlassian.com
2008-02-28 13:30:53 UTC
Permalink
Thanks! What about messages/input-output in general? If we don't require only XML input/output (but some sort of generic message format), will the answer remain the same?

Thanks again.
--
Post by takeshi.kovacs - online at:
http://forums.atlassian.com/thread.jspa?forumID=46&threadID=23905
f***@atlassian.com
2008-02-28 13:45:34 UTC
Permalink
Pretty much - Jira is focussed on delivering information to an active on-line user via the front end. If you need information to flow in the background, you'll need to write something to do it.

It's probably worth checking out the SOAP stuff - people are doing a lot of clever things with that, and I suspect it's a lot of data transport. I'm afraid I've not used it myself, so I can't help much.
--
Post by broughn2 - online at:
http://forums.atlassian.com/thread.jspa?forumID=46&threadID=23905
Loading...