Hello,
I am trying to create an automated mail that sends some information daily to people.
The data is defect statistics.
The first step is using issue lookup to get the list I want.
I then assign it to a lookup table, the idea is that I need multiple sets of data in one email. Think of issues created that day and issues closed for example. In practice, the queries are a bit more complicated.
Now this works fine and gives me the full list when I send it like this
{{#created.get("created1")}}
* {{key}} - {{summary}}
{{/}}
To add more I thought to use Lookup issues again and assign the result to a variable. And then add the variable to my lookup table.
Which then looks like this
First data set
{{#created.get("created1")}}
* {{key}} - {{summary}}
{{/}}
Second data set
{{#created.get("created2")}}
* {{key}} - {{summary}}
{{/}}
The problem is I tried it with the same data and the {{lookupIssues}} one does correctly show all result from the query but the one based on the variable does only show one entry.
So how do I get both to show the full list?
Thank you all very much for your time and help.
When you saved the first lookup result as a variable, that converted it all to text. It is no longer a list of issue objects that can be parsed, iterated, etc.
Without knowing the specifics of your JQL for the lookups, there are three possible workarounds:
I recommend using the first one. For example, let's say you wanted to list done and not-done issues. That could be this:
Done Issues:
{{#lookupIssues}}
{{#if(equals(status.statusCategory.name,"Done"))}}* {{key}} - {{summary}}{{/}}
{{/}}
Not Done Issues:
{{#lookupIssues}}
{{#if(not(equals(status.statusCategory.name,"Done")))}}* {{key}} - {{summary}}{{/}}
{{/}}
Kind regards,
Bill
Thanks for your answer Bill
I could cover all issues with one query the problem is there is a good chance that sometimes the results will be over 100.
Ideally, I would just send a mail with the link to the dashboard or something simpler. But people want emails with issues in it and it might be a while till I have convinced them otherwise
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for that additional information, and so perhaps try option #2 next:
{{#lookupIssues}}* {{key}} - {{summary}}{{^last}}~~{{/}}{{/}}
{{#variableA.split("~~")}}
{{.}}
{{/}}
Please adjust the creation of variableA to contain the fields / format needed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.