rtcclient
rtcclient copied to clipboard
How to retrieve story point of workitem ?
Dear Di Xu and all,
I followed the guideline v0.1.dev95 but I didn't see how to get the story point value of a certain Story workitem. Could you help me to solve this case ?
@hiosdroid You could try to follow all returned properties, ref to link. And find out the exact story point attribute. I cannot rememer the exact name, but you can use this way to figure it out. Then you can access the value using something like this wk_example.storyPointExample.
@dixudx Sorry, I could not find any properties related to storyPoint in ref link.
@hiosdroid You need to find out from your wk_example.field_alias.
@dixudx @hiosdroid
I've recently pulled this code for something I'm working on, and made the following type of change to the base.py file's __initializeFromRaw function section:
safeFields = ['acceptance', 'complexity', 'attachment', 'blocks', 'dependsOn', 'blocked', 'blockedReason']
if len(attr_list) > 1:
if any(x in attr for x in safeFields):
attr = "_".join([attr_list[-2], attr_list[-1]])
else:
continue
I needed the IBM classes that terminate with the strings outlined in the safeFields array (this includes storypoints, which is complexity). Doing this not only gets me what I want without making sweeping edits to this library, but also avoids the error pointed out by @dixudx in another thread on this subject of storyPoints, as I'm selectively saying what I want to grab in the raw_data without skipping everything that is a Java class name structure. This solution is working solid for me, atm.