Coder Social home page Coder Social logo

Comments (6)

maxtepkeev avatar maxtepkeev commented on July 27, 2024

Hi, you have 2 options to get children tasks of the task:

  1. This is the preferred option because it will return all the subtasks in one call:
    issue = redmine.issue.get(105, include='children')
    issue.children
    <redmine.resultsets.ResourceSet object with Issue resources>
  1. You can use an on demand includes:
    issue = redmine.issue.get(105)
    issue.children
    <redmine.resultsets.ResourceSet object with Issue resources>

The difference is that in the first case you'll get the subtasks in one call to the Redmine, in the second case a second call will be made to Redmine when you'll begin to work with issue.children

Let me know if you have more questions.

from python-redmine.

maxtepkeev avatar maxtepkeev commented on July 27, 2024

Did you succeed with the children tasks ?

from python-redmine.

tsengs avatar tsengs commented on July 27, 2024

yes, this one is ok, thanks a lot!

Max Tepkeev 於 2014-06-10 15:07 寫到:

Did you succeed with the children tasks ?

Reply to this email directly or view it on GitHub [1].

Links:

[1]
#32 (comment)

from python-redmine.

tsengs avatar tsengs commented on July 27, 2024

Hi Max,

Continue with this topic, now we have another need: we would like to get the subjects of the children tasks. We assumed each 'child' in the 'children' iterator was an issue, but we couldn't find subject. Can you help? Like the clip below, if I am able to get the subjects of the children tasks, I can make a very nice overview for the managers. Thank you, Shu.
subtasks

from python-redmine.

tsengs avatar tsengs commented on July 27, 2024

Hi Max,

Have you seen my new comment for issue #32?

Shu

Max Tepkeev 於 2014-06-10 15:33 寫到:

Closed #32 [1].

Reply to this email directly or view it on GitHub [2].

Links:

[1] #32
[2]
#32 (comment)

from python-redmine.

diaojunxian avatar diaojunxian commented on July 27, 2024

@tsengs I also need to get all the subtasks from a issue id, had you solved it ?

Yes,I had got it, it may used like that issue.children[0].id

from python-redmine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.