Issue Details (XML | Word | Printable)

Key: CHK-33
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Roberto Dominguez
Reporter: Leah Rickard
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Confluence Checklists Plugin

Combine depth/parent parameters with label parameter

Created: 21/Aug/07 07:21 PM   Updated: 12/Sep/07 04:55 PM
Component/s: None
Affects Version/s: 1.2
Fix Version/s: 1.2.1

Time Tracking:
Not Specified

Labels:


 Description  « Hide
At the moment you can either pull through all child (or descendent) pages, or all pages with a particular label. Is it possible to update the plugin so that you can combine these, and pull through all descendent pages with a particular label?

Eg. {checklist:name=The animals|parent=Checklist testing|checklabels=mammal,oviparous,pets|depth=0|label=animal}
would bring through all child pages with the label 'animal', and all descendent pages with the label 'animal', but ignore all child/descendent pages without the label 'animal'



 All   Comments   Work Log   Change History   FishEye   Crucible   Builds      Sort Order: Ascending order - Click to sort in descending order
Roberto Dominguez added a comment - 22/Aug/07 09:31 AM
Isn't that the way currently works? See Example 2 on http://confluence.atlassian.com/display/CONFEXT/Checklists+Plugin
{checklist:name=Oviparious|parent=Animals|excerpt-heading=Classification|
    label=oviparous|checklabels=fish, amphibians, reptiles, birds|mutuallyexclusive=true}

This will get all children of Animals that have the label oviparous


Leah Rickard added a comment - 22/Aug/07 04:55 PM
Hi Roberto

It works for the children, but not for the descendents. I have 'depth=2' but it only pulls through the children with the specified label, not the descendents with the label.

Sorry I wasn't clearer.


Roberto Dominguez added a comment - 22/Aug/07 05:25 PM
Let me see if I get it. You have something like this
A
+-B
+-C
  +-D
  +-E
  +-F
  +-G
    +-I
    +-J

Then

{checklist:parent=A|depth=0|label=X}

So assuming Only B, D, J have label X, you expect to get those Pages, but you are getting only B, and D, right?

Looked at the code and I think it is more a bug, as I am not checking the children of a page if the page does not have the expected label...

Easy fix, let me put it in next release.


Leah Rickard added a comment - 22/Aug/07 06:19 PM
Thanks for that.