Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to retrieve story point of workitem ? #121

Open
hiosdroid opened this issue Sep 6, 2019 · 4 comments
Open

How to retrieve story point of workitem ? #121

hiosdroid opened this issue Sep 6, 2019 · 4 comments

Comments

@hiosdroid
Copy link

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 ?

@dixudx
Copy link
Owner

dixudx commented Sep 15, 2019

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

@hiosdroid
Copy link
Author

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

@dixudx
Copy link
Owner

dixudx commented Oct 22, 2019

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

@fignutz
Copy link

fignutz commented Mar 17, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants