Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Document generator Xray

John I'm New Here Oct 19, 2021

Hi, all.

I add the following query to the report template in Word format:


${for task}
#{for n=LinksCount|filter=%{'${Links[n].IssueTypeName}'.equals('Bug')}}

No Bug

#{for n=LinksCount|filter=%{'${Links[n].IssueTypeName}'.equals('Bug')}}
${Links[n].Key} ${Links[n].Summary}


The report should include related queries with the Bug type, but the field is empty.
Tried different solutions but nothing helps.

What could be the mistake?
How do I properly unload information from a related Bug issue?

1 answer

Hi @John 

This code ${for task} does not exist in Xray's document generator.

All iterations start with a # (sharp) char and must be run from a location where you have issue types according to the code. If your defects are of type Task, then you need to run from a location where you have Task issue types.

If you are running the report from the search for issues, and you have a list of Tasks, it is best to use the for issues iteration:

&{for issues}


Always check if the code you need exists in the documentation because it will not work if it is not found there:

If you need further help, please get in touch with Xray Support (; we would gladly assist you.

Thank you.

Kind regards,
Rogério Paiva [Xray Support Team]

John I'm New Here Oct 20, 2021

@Rogério Paiva - Xray Xporter Good job. Thank you for the prompt response. Have a nice day.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

39 views 0 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you