Bug 52993 - xmlproperty not working as advertised
Summary: xmlproperty not working as advertised
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.8.2
Hardware: Sun Solaris
: P2 normal (vote)
Target Milestone: ---
Assignee: Ant Notifications List
Depends on:
Reported: 2012-03-27 22:48 UTC by Ryan
Modified: 2012-03-27 22:48 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Ryan 2012-03-27 22:48:18 UTC
Not sure if this is an issue with me understanding the documentation or it not working.

I'm trying to load xml properties from Jira for the sake of configuring an ant build. When I view the xml that I'm having problems with from Jira it looks like:

	<issuelinktype id="10000">
		<outwardlinks description="depends upon">
				<issuekey id="14214">BUILD-460</issuekey>
				<issuekey id="14182">BUILD-446</issuekey>
		<inwardlinks description="is a dependency of">
				<issuekey id="14183">BUILD-447</issuekey>
	<issuelinktype id="10002">
		<outwardlinks description="fixes">
				<issuekey id="14215">BUILD-461</issuekey>

I expected to be able to output the id as part of the property names so that they don't collapse. But could not get it to work the way I need it to. I get the following properties back from xmlproperty:

[echoproperties] rss.channel.item.issuelinks.issuelinktype.inwardlinks.description=is a dependency of
[echoproperties] rss.channel.item.issuelinks.issuelinktype.inwardlinks.issuelink.issuekey=BUILD-447
[echoproperties] rss.channel.item.issuelinks.issuelinktype.name=Dependency,Fix
[echoproperties] rss.channel.item.issuelinks.issuelinktype.outwardlinks.description=depends upon,fixes
[echoproperties] rss.channel.item.issuelinks.issuelinktype.outwardlinks.issuelink.issuekey=BUILD-460,BUILD-446,BUILD-461

This is problematic because it combines different elements from different parent elements and then I can't parse to determine the Jira issues that have a particular link type (such as depends on).

Am I reading something wrong or isn't the includeSemanticAttribute=true suppose to include the id value in the property name?

Is there any workaround? This is a showstopper for me. Thanks for any and all help.

You can test this with any Jira that provides xml search results.