Hello,
I've isolated the two outputs to the ones that don't work. "Tags" and Feature. Anyone know what I'm doing wrong on "Tags" and "Feature". Any insight would be greatly appreciated.
def getuserstories():
response = rally.get("HierarchicalRequirement", fetch=True, pagesize=200, limit=10)
rally.enableLogging('C:\\Users\\malcolmc\\Documents\\Projects\\Migration\\DataDump\\pyral.log')
try:
for item in response:
mytags = []
tags = item.Tags
for tag in tags: <-----Seems like looping through the object should work but it's not.
mytags.append(tag)
feid = ''
try:
feid = item.PortfolioItem.FormattedID <------This does not return the "Feature" data. returns as empty, even for records that have Features.
except StandardError:
if feid is None:
pass
fields2 = (mytags, feid)
print fields2
except Exception, details:
sys.stderr.write('ERROR: %s \n' % details)
sys.exit(1)
Output:
([], '')
([], '')
([], '')
([<pyral.entity.Tag object at 0x000000000558DF60>], '') <--- The tag object is being returned instead of data. The feature is empty but shouldn't be.
([<pyral.entity.Tag object at 0x0000000005755438>], '')
([<pyral.entity.Tag object at 0x0000000004BB31D0>], '')
([<pyral.entity.Tag object at 0x0000000005755390>], '')
([<pyral.entity.Tag object at 0x0000000005755400>], '')
([<pyral.entity.Tag object at 0x0000000004BB3278>], '')
([<pyral.entity.Tag object at 0x000000000558DF28>], '')