{hidden-data} breaks in weird ways
Here's my template... Sorry about the length, but there's a reason for that.
You'll notice a whole load of {hidden-data} bits in there, which all used to work. Now what happens from {hidden-data:whenNoRows=JiraIssues} downwards, is the first line of text inside the {hidden-data} does not have wiki rendering applied. You can see the effect on the {hidden-data:whenEmpty=SeeAlso} section if you remove the {color} macro.
I'm sure this was all fine before Scaffolding 3.2.0. I'm running Confluence 3.0.1.
Bryan
{composition-setup}
cloak.memory.duration = 500
cloak.toggle.type = default
{composition-setup}
{add-label:user_story}
h2. {report-info:data:Story}
{report-block}
{local-reporter:page:parent}
{content-filter:@self|labels=+user_story}
{local-reporter}
{report-body}
h4. Parent
{table:border=0}
{tr}
{td}{report-info:page:title|link=true}{td}
{td} {td}
{td}{report-info:data:Story|render=wiki}{td}
{tr}
{table}
{report-body}
{report-block}
h4. {toggle-cloak:id=Instructions} Instructions
{cloak:id=Instructions|visible=false}
{info}
Template Instructions for User Stories
dum de dum
{info}
{cloak}
h4. {toggle-cloak:id=PageHistory} Change log
{cloak:id=PageHistory|visible=false}
{change-history}
{cloak}
h4. User Story
|| ID | *{page-info:title}* |
|| Story | {show-if:action=edit}{color:red}_The Story is one sentence written in user language, eg. A <usertype> can press in to get ._{color}{show-if}
{excerpt-data:Story|type=line|required=true|width=700px} |
|| Data Story Points | {show-if:action=edit}{color:red}_Story Points show the complexity of this story. If it has child stories, the effective story points are this value summed with its child stories._{color}{show-if}{list-data:DataStoryPoints|type=select}
{list-option}0{list-option}
{list-option}1{list-option}
{list-option}2{list-option}
{list-option}3{list-option}
{list-option}5{list-option}
{list-option}8{list-option}
{list-option}13{list-option}
{list-option}21{list-option}
{list-option}34{list-option}
{list-option}55{list-option}
{list-option}89{list-option}
{list-data} |
|| Graphics Story Points | {list-data:GraphicsStoryPoints|type=select}
{list-option}0{list-option}
{list-option}1{list-option}
{list-option}2{list-option}
{list-option}3{list-option}
{list-option}5{list-option}
{list-option}8{list-option}
{list-option}13{list-option}
{list-option}21{list-option}
{list-option}34{list-option}
{list-option}55{list-option}
{list-option}89{list-option}
{list-data} |
|| Status | {list-data:Status|type=select}
{list-option:Not Started}(off) Not Started{list-option}
{list-option:In Progress}(on) In Progress{list-option}
{list-option:Complete}(/) Complete{list-option}
{list-data} |
|| In release | {replace-and-render}{replace-item:%ID%}{page-info:title}{replace-item}
{replace-body}
{report-block:separator=newline}
{local-reporter:page:children|source=Roadmap}
{content-filter:@self|labels=+release}
{collection-filter:data:UserStories|matchItems=any}
{text-filter:data:StoryID|include=%ID%}
{collection-filter}
{local-reporter}
{report-body}
{report-info:page:title|link=true}
{report-body}
{report-empty}Not scheduled for release _though one of its parents may be_{report-empty}
{report-block}
{replace-body}
{replace-and-render} |
|| Story size | {list-data:StorySize|required=true}
{list-option:About Right}(/) About Right{list-option}
{list-option:Too Large}(x) Too Large - {color:red}requires child stories{color}{list-option}
{list-data} |
{hidden-data:whenEmpty=StoryDetail}
{color:green}*Detail*{color}
{show-if:action=edit}{color:red}_Enter the description of the user story here (you can use wiki code) with any necessary embedded diagrams_{color}{show-if}
{text-data:StoryDetail|type=area|width=750px|height=350px}{text-data}
{hidden-data}
{hidden-data:whenEmpty=Justification}
{color:green}*Justification*{color}
{show-if:action=edit}{color:red}_Why is this feature needed? What sort of customers would see value from it?_{color}{show-if}
{text-data:Justification|type=area|width=750px|height=350px}{text-data}
{hidden-data}
{hidden-data:whenEmpty=TechnicalDetail}
{color:green}*Technical Detail*{color}
{show-if:action=edit}{color:red}_What does a developer need to know about this that a product manager does not?_{color}{show-if}
{text-data:TechnicalDetail|type=area|width=750px|height=350px}{text-data}
{hidden-data}
{hidden-data:whenEmpty=SeeAlso}
{color:green}*See also*{color}
{show-if:action=edit}{color:red}_Optional link(s) to related information -e.g., links to a functional requirements page._{color}{show-if}
{text-data:SeeAlso|type=area|width=750px|height=350px}{text-data}
{hidden-data}
{hidden-data:whenNoRows=JiraIssues}
----
h4. JIRA Issues
{show-if:action=edit}{color:red}_Optional link(s) to JIRA tasks. When these tasks are complete, the user story is complete._{color}{show-if}
{table-data:JiraIssues}
|| ID || Link ||
| *{text-data:JiraID}{text-data}* |
{replace-and-render}{replace-item:%ID%}{get-data:JiraID}{replace-item}{replace-body}[Link|%ID%@jira]{replace-body}{replace-and-render} |
{table-data}
{hidden-data}
----
h4. UI Mockups
{show-if:action=edit}{color:red}_Optional UI mockups._{color}{show-if}
{text-data:UIMockups|type=area|width=750px|height=350px}{text-data}
----
{show-if:action=edit}{color:red}_Child stories are a constituent part of this story. This story cannot be complete if its child stories are not complete._{color}{show-if}
{report-table:displayTitles=true}
{local-reporter:page:children}
{text-sort:data:ID}
{local-reporter}
{report-header}h4. Child User Stories{report-header}
{report-column:title=ID}{report-info:page:title|link=true}{report-column}
{report-column:title=Story}{report-info:data:Story|render=wiki}{report-column}
{report-column:title=Detail|injected=true}{toggle-cloak:id=Detail%title%} *Detail*
{cloak:id=Detail%title%|visible=false}
\\{report-info:data:StoryDetail|render=wiki}
{cloak}
{report-column}
{report-column:title=Data Points|summaryType=sum|summaryFormat=#####0}{report-info:data:DataStoryPoints}{report-column}
{report-column:title=Graphics Points|summaryType=sum|summaryFormat=#####0}{report-info:data:GraphicsStoryPoints}{report-column}
{report-column:title=Status}{report-info:data:Status|render=wiki}{report-column}
{report-table}
{hide-if:action=edit}
{create-page:parent=@self|addimg=false|template=Live User Story|title=US-%ident%}Create a new child User Story{create-page}
{hide-if}
----
{hidden-data:whenNoRows=RelatedUserStories}
{hidden-data}
h4. Related User Stories:
{show-if:action=edit}{color:red}_Related stories are here for information only. Notes field says why they're here (e.g. Prerequisite etc)._{color}{show-if}
{table-data:RelatedUserStories}
|| ID || Link || Notes || Story || Data Points || Graphics Points || Status ||
| *{text-data:StoryID|width=55px}{text-data}* |
{replace-and-render}{replace-item:%ID%}{get-data:StoryID}{replace-item}{replace-body}[Link|%ID%]{replace-body}{replace-and-render} |
*{text-data:Notes|width=255px}{text-data}* |
{replace-and-render}{replace-item:%ID%}{get-data:StoryID}{replace-item}{replace-body}{report-info:data:Story|render=wiki|source=%ID%}{replace-body}{replace-and-render} |
{replace-and-render}{replace-item:%ID%}{get-data:StoryID}{replace-item}{replace-body}{report-info:data:DataStoryPoints|source=%ID%}{replace-body}{replace-and-render} |
{replace-and-render}{replace-item:%ID%}{get-data:StoryID}{replace-item}{replace-body}{report-info:data:GraphicsStoryPoints|source=%ID%}{replace-body}{replace-and-render} |
{replace-and-render}{replace-item:%ID%}{get-data:StoryID}{replace-item}{replace-body}{report-info:data:Status|source=%ID%|render=wiki}{replace-body}{replace-and-render} |
{table-data}
----
</usertype>
You'll notice a whole load of {hidden-data} bits in there, which all used to work. Now what happens from {hidden-data:whenNoRows=JiraIssues} downwards, is the first line of text inside the {hidden-data} does not have wiki rendering applied. You can see the effect on the {hidden-data:whenEmpty=SeeAlso} section if you remove the {color} macro.
I'm sure this was all fine before Scaffolding 3.2.0. I'm running Confluence 3.0.1.
Bryan
{composition-setup}
cloak.memory.duration = 500
cloak.toggle.type = default
{composition-setup}
{add-label:user_story}
h2. {report-info:data:Story}
{report-block}
{local-reporter:page:parent}
{content-filter:@self|labels=+user_story}
{local-reporter}
{report-body}
h4. Parent
{table:border=0}
{tr}
{td}{report-info:page:title|link=true}{td}
{td} {td}
{td}{report-info:data:Story|render=wiki}{td}
{tr}
{table}
{report-body}
{report-block}
h4. {toggle-cloak:id=Instructions} Instructions
{cloak:id=Instructions|visible=false}
{info}
Template Instructions for User Stories
dum de dum
{info}
{cloak}
h4. {toggle-cloak:id=PageHistory} Change log
{cloak:id=PageHistory|visible=false}
{change-history}
{cloak}
h4. User Story
|| ID | *{page-info:title}* |
|| Story | {show-if:action=edit}{color:red}_The Story is one sentence written in user language, eg. A <usertype> can press in to get ._{color}{show-if}
{excerpt-data:Story|type=line|required=true|width=700px} |
|| Data Story Points | {show-if:action=edit}{color:red}_Story Points show the complexity of this story. If it has child stories, the effective story points are this value summed with its child stories._{color}{show-if}{list-data:DataStoryPoints|type=select}
{list-option}0{list-option}
{list-option}1{list-option}
{list-option}2{list-option}
{list-option}3{list-option}
{list-option}5{list-option}
{list-option}8{list-option}
{list-option}13{list-option}
{list-option}21{list-option}
{list-option}34{list-option}
{list-option}55{list-option}
{list-option}89{list-option}
{list-data} |
|| Graphics Story Points | {list-data:GraphicsStoryPoints|type=select}
{list-option}0{list-option}
{list-option}1{list-option}
{list-option}2{list-option}
{list-option}3{list-option}
{list-option}5{list-option}
{list-option}8{list-option}
{list-option}13{list-option}
{list-option}21{list-option}
{list-option}34{list-option}
{list-option}55{list-option}
{list-option}89{list-option}
{list-data} |
|| Status | {list-data:Status|type=select}
{list-option:Not Started}(off) Not Started{list-option}
{list-option:In Progress}(on) In Progress{list-option}
{list-option:Complete}(/) Complete{list-option}
{list-data} |
|| In release | {replace-and-render}{replace-item:%ID%}{page-info:title}{replace-item}
{replace-body}
{report-block:separator=newline}
{local-reporter:page:children|source=Roadmap}
{content-filter:@self|labels=+release}
{collection-filter:data:UserStories|matchItems=any}
{text-filter:data:StoryID|include=%ID%}
{collection-filter}
{local-reporter}
{report-body}
{report-info:page:title|link=true}
{report-body}
{report-empty}Not scheduled for release _though one of its parents may be_{report-empty}
{report-block}
{replace-body}
{replace-and-render} |
|| Story size | {list-data:StorySize|required=true}
{list-option:About Right}(/) About Right{list-option}
{list-option:Too Large}(x) Too Large - {color:red}requires child stories{color}{list-option}
{list-data} |
{hidden-data:whenEmpty=StoryDetail}
{color:green}*Detail*{color}
{show-if:action=edit}{color:red}_Enter the description of the user story here (you can use wiki code) with any necessary embedded diagrams_{color}{show-if}
{text-data:StoryDetail|type=area|width=750px|height=350px}{text-data}
{hidden-data}
{hidden-data:whenEmpty=Justification}
{color:green}*Justification*{color}
{show-if:action=edit}{color:red}_Why is this feature needed? What sort of customers would see value from it?_{color}{show-if}
{text-data:Justification|type=area|width=750px|height=350px}{text-data}
{hidden-data}
{hidden-data:whenEmpty=TechnicalDetail}
{color:green}*Technical Detail*{color}
{show-if:action=edit}{color:red}_What does a developer need to know about this that a product manager does not?_{color}{show-if}
{text-data:TechnicalDetail|type=area|width=750px|height=350px}{text-data}
{hidden-data}
{hidden-data:whenEmpty=SeeAlso}
{color:green}*See also*{color}
{show-if:action=edit}{color:red}_Optional link(s) to related information -e.g., links to a functional requirements page._{color}{show-if}
{text-data:SeeAlso|type=area|width=750px|height=350px}{text-data}
{hidden-data}
{hidden-data:whenNoRows=JiraIssues}
----
h4. JIRA Issues
{show-if:action=edit}{color:red}_Optional link(s) to JIRA tasks. When these tasks are complete, the user story is complete._{color}{show-if}
{table-data:JiraIssues}
|| ID || Link ||
| *{text-data:JiraID}{text-data}* |
{replace-and-render}{replace-item:%ID%}{get-data:JiraID}{replace-item}{replace-body}[Link|%ID%@jira]{replace-body}{replace-and-render} |
{table-data}
{hidden-data}
----
h4. UI Mockups
{show-if:action=edit}{color:red}_Optional UI mockups._{color}{show-if}
{text-data:UIMockups|type=area|width=750px|height=350px}{text-data}
----
{show-if:action=edit}{color:red}_Child stories are a constituent part of this story. This story cannot be complete if its child stories are not complete._{color}{show-if}
{report-table:displayTitles=true}
{local-reporter:page:children}
{text-sort:data:ID}
{local-reporter}
{report-header}h4. Child User Stories{report-header}
{report-column:title=ID}{report-info:page:title|link=true}{report-column}
{report-column:title=Story}{report-info:data:Story|render=wiki}{report-column}
{report-column:title=Detail|injected=true}{toggle-cloak:id=Detail%title%} *Detail*
{cloak:id=Detail%title%|visible=false}
\\{report-info:data:StoryDetail|render=wiki}
{cloak}
{report-column}
{report-column:title=Data Points|summaryType=sum|summaryFormat=#####0}{report-info:data:DataStoryPoints}{report-column}
{report-column:title=Graphics Points|summaryType=sum|summaryFormat=#####0}{report-info:data:GraphicsStoryPoints}{report-column}
{report-column:title=Status}{report-info:data:Status|render=wiki}{report-column}
{report-table}
{hide-if:action=edit}
{create-page:parent=@self|addimg=false|template=Live User Story|title=US-%ident%}Create a new child User Story{create-page}
{hide-if}
----
{hidden-data:whenNoRows=RelatedUserStories}
{hidden-data}
h4. Related User Stories:
{show-if:action=edit}{color:red}_Related stories are here for information only. Notes field says why they're here (e.g. Prerequisite etc)._{color}{show-if}
{table-data:RelatedUserStories}
|| ID || Link || Notes || Story || Data Points || Graphics Points || Status ||
| *{text-data:StoryID|width=55px}{text-data}* |
{replace-and-render}{replace-item:%ID%}{get-data:StoryID}{replace-item}{replace-body}[Link|%ID%]{replace-body}{replace-and-render} |
*{text-data:Notes|width=255px}{text-data}* |
{replace-and-render}{replace-item:%ID%}{get-data:StoryID}{replace-item}{replace-body}{report-info:data:Story|render=wiki|source=%ID%}{replace-body}{replace-and-render} |
{replace-and-render}{replace-item:%ID%}{get-data:StoryID}{replace-item}{replace-body}{report-info:data:DataStoryPoints|source=%ID%}{replace-body}{replace-and-render} |
{replace-and-render}{replace-item:%ID%}{get-data:StoryID}{replace-item}{replace-body}{report-info:data:GraphicsStoryPoints|source=%ID%}{replace-body}{replace-and-render} |
{replace-and-render}{replace-item:%ID%}{get-data:StoryID}{replace-item}{replace-body}{report-info:data:Status|source=%ID%|render=wiki}{replace-body}{replace-and-render} |
{table-data}
----
</usertype>
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The company marked this question as answered.
-
Inappropriate?Yeah, there's a known issue with {hidden-data}. We've fixed it for the next version, but in the meantime you can manually install the 'snapshot' release, available here:
https://bamboo.developer.atlassian.co...
1 person says
this answers the question
Loading Profile...



EMPLOYEE