How to configure Metadata in a RPE Report to display all iterations of a project
CLM 4.0.1 RPE1.1.2.2
I've a report where I would like to enable the user to select on of the project iteration
REST Call below works fine
${public}/rpt/repository/foundation?fields=foundation/projectArea[itemId=${projectAreaUUID}]/(projectDevelopmentLine/iterations/(name|children/(name|children/(name))))
What should I put in the Display and Identifier fields?
a) /foundation/projectArea/projectDevelopmentLine/iterations/(name|children/(name|children/(name)))
==> ends with error: javax.xml.transform.TransformerException: A location step was expected following the '/' or '//' token.
b)/foundation/projectArea/projectDevelopmentLine/iterations/(name)
==> returns only the first level
I've a report where I would like to enable the user to select on of the project iteration
REST Call below works fine
${public}/rpt/repository/foundation?fields=foundation/projectArea[itemId=${projectAreaUUID}]/(projectDevelopmentLine/iterations/(name|children/(name|children/(name))))
What should I put in the Display and Identifier fields?
a) /foundation/projectArea/projectDevelopmentLine/iterations/(name|children/(name|children/(name)))
==> ends with error: javax.xml.transform.TransformerException: A location step was expected following the '/' or '//' token.
b)/foundation/projectArea/projectDevelopmentLine/iterations/(name)
==> returns only the first level
Accepted answer
You could use the "//" operator in your display and identifier expressions, i.e. "//name". This will search the entire result of your REST call for the "name" attribute, no matter where it is nested in the iteration tree.