rtcclient icon indicating copy to clipboard operation
rtcclient copied to clipboard

How to retrieve story point of workitem ?

Open hiosdroid opened this issue 6 years ago • 4 comments

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 avatar Sep 06 '19 04:09 hiosdroid

@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 avatar Sep 15 '19 08:09 dixudx

@dixudx Sorry, I could not find any properties related to storyPoint in ref link.

hiosdroid avatar Oct 21 '19 01:10 hiosdroid

@hiosdroid You need to find out from your wk_example.field_alias.

dixudx avatar Oct 22 '19 12:10 dixudx

@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.

fignutz avatar Mar 17 '20 18:03 fignutz