How to generate and download a report of the asset tagged under a specific tag category? | Community
Skip to main content
PiyushA1986
Level 2
Jun 20, 2019 1:12 PM UTC
Solved

How to generate and download a report of the asset tagged under a specific tag category?

How to generate and download a report of the asset tagged under a specif tag category?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Jun 20, 2019 8:24 PM UTC

you can write a servlet which executes a query with the above condition and put results in CSV or in Other Formats.

The query can look like below for searching Assets which tags either with we-retail:apparel/footwear or we-retail:apparel/shorts

QueryBuilder Query

type=dam:Asset

path=/content/dam

property=jcr:content/metadata/cq:tags

property.1_value=we-retail:apparel/footwear

property.2_value=we-retail:apparel/shorts

p.hits=selective

p.properties=jcr:path

p.limit=-1

The bold part from the query can be removed. That is for json output from QueryBuilder Debugger Tool to only gives assets path.

Or create your own reporting by following below:

Developing Reports

Arun Patidar

2 replies

PiyushA1986
Level 2
Jun 24, 2019 2:26 PM UTC

Thanks Arun, will test and get back to you.

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Jun 20, 2019 8:24 PM UTC

you can write a servlet which executes a query with the above condition and put results in CSV or in Other Formats.

The query can look like below for searching Assets which tags either with we-retail:apparel/footwear or we-retail:apparel/shorts

QueryBuilder Query

type=dam:Asset

path=/content/dam

property=jcr:content/metadata/cq:tags

property.1_value=we-retail:apparel/footwear

property.2_value=we-retail:apparel/shorts

p.hits=selective

p.properties=jcr:path

p.limit=-1

The bold part from the query can be removed. That is for json output from QueryBuilder Debugger Tool to only gives assets path.

Or create your own reporting by following below:

Developing Reports

Translate
Arun Patidar