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

No method for remaining time of an issue #53

Closed
fcabaud opened this issue Oct 6, 2014 · 3 comments
Closed

No method for remaining time of an issue #53

fcabaud opened this issue Oct 6, 2014 · 3 comments
Assignees
Labels

Comments

@fcabaud
Copy link

fcabaud commented Oct 6, 2014

Good evening,

Is there any method for getting remaining time of an issue ?

There is nothing is documentation nor in dir() of any object...

@maxtepkeev maxtepkeev self-assigned this Oct 7, 2014
@maxtepkeev
Copy link
Owner

Hi!

What do you mean by "remaining time of an issue" ? There is no such thing in Redmine and Python-Redmine is just a client for the Redmine API. There is a done_ratio (percent) and spent_hours (integer). Maybe you are talking about some custom field that you have in your Redmine, if that is the case then you can access it via issue.custom_fields.get(X) where X is the id of your custom field resource that represents the remaining time of an issue.

Hope that helps.

@fcabaud
Copy link
Author

fcabaud commented Oct 7, 2014

"remaining time" is a data from Backlog plug-in... not from the core of redmine. That's why we dont access it from the python-redmine module

@fcabaud fcabaud closed this as completed Oct 7, 2014
@maxtepkeev
Copy link
Owner

I had a look at this plugin and it looks like that it doesn't have a separate REST API endpoints. It's just exposing some of the parameters via issues REST API endpoint starting from version 1.0.0 (see change log).

I've installed the plugin and I can see the story_points field in my issues. So basically there is no need to do something with python-redmine to support this plugin. I'm still not sure what field you are talking exactly when you say "remaining time of an issue" but according to changelog of backlog plugin it only exposes the release/story_points fields and not the field which looks like the "remaining time of an issue". As you understand if this field is not exposed via REST API there is no way for you to access it, you should probably ask developers of Backlog plugin to implement this feature.

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

No branches or pull requests

2 participants