Teams does not show the lookupIssues result in the message
Asked by Tanja van Wijk:

I had an automation which was working fine until some days ago, did not change anything about the automation itself, but somehow the lookupIssues result shows up empty in my teams channel message.

the lookup query (JQL) gives a result of 30 items

then the automation step sends it to teams, I do get the message in teams, but without the result list, just the first text part.

step: send Microsoft teams message:

Hey team - we've got the following issues left in this sprint:  
{{#lookupIssues}}  
\* {{key}}  
{{/}}

What am i doing wrong here? :)


Answers:
author: Luis Machado
body: Hi [@Tanja van Wijk](/t5/user/viewprofilepage/user-id/4989674)

Welcome to the Community!

It's hard to know what the issue might be without seeing the Automation rule, can you share it? and have you looked at the Audit log for the rule to see if there are any errors?

comments: author: Tanja van Wijk
body: Thanks!

This is what i am trying to do:

![automation.png](https://community.atlassian.com/t5/image/serverpage/image-id/229637iC60F8EDEED14A9C1/image-size/large?v=v2&px=999 "automation.png")

according to the Audit log, the JQL gave a result (also verified in the automation itself)

![audit log.png](https://community.atlassian.com/t5/image/serverpage/image-id/229635iEA160AE484B1770E/image-size/large?v=v2&px=999 "audit log.png")

but teams shows this:

![teams result.png](https://community.atlassian.com/t5/image/serverpage/image-id/229636iA2DA3D8C88242C68/image-size/large?v=v2&px=999 "teams result.png")


author: Bill Leonard
body: I'm having almost the same problem. However, I receive as many updates in Teams as there are found items (in this case 4).

<br />

I tested using the Send email action and I'm receiving 4 emails, but the email does contain the information I entered in the Content box:

{{#lookupIssues}}  
\* {{key}}: {{summary}} - {{assignee.displayName}}  
{{/}}


author: Luis Machado
body: Ok I played in the sand a bit.

[@Tanja van Wijk](/t5/user/viewprofilepage/user-id/4989674)I was able to recreate your rule and test it, the full functionality worked for me. Even though it shows you the lookup results you might want to add a log action for {{lookupIssues}} to make sure the lookup is being fed into the smart value. Outside of that, since the message is being sent I wouldn't think it's an issue with the webhook but maybe try recreating the webhook in teams or make a second one to test with?

[@Bill Leonard](/t5/user/viewprofilepage/user-id/4660122)I think your issue might be due to the Subject, are you including a smart value in the Message title or email subject?


author: Bill Leonard
body: Hi [@Luis Machado](/t5/user/viewprofilepage/user-id/3743773)

I recreated the connector like you suggested above and that worked for the Teams update. That's all I was really concerned with. Thanks.


author: Bill Leonard
body: This is interesting. It's now gone back to not including the issues. I was adding information about the ticket (summary, assignee) and it stopped working.

Message\*  
Please update the tickets below with a Project Update:

{{#lookupIssues}}  
\* {{key}}  
{{/}}

![Capture.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/229688i9467FB1BE2B37AD8/image-size/large?v=v2&px=999 "Capture.JPG")


author: Luis Machado
body: That is interesting, I'm not sure what else to suggest at this point. It almost sounds like there's something happening in transit that is scrubbing the message.


author: Bill Leonard
body: Another interesting tidbit. The Teams channel now shows the issues that were found. Below is the same screenshot from above but with the issues that were found. Something must have changed.

![teams.png](https://community.atlassian.com/t5/image/serverpage/image-id/229828i8C662683F0591E69/image-size/large?v=v2&px=999 "teams.png")


author: Tanja van Wijk
body: I indeed have the same, some really strange behavior which i cannot pinpoint to anything setup related.


author: Tanja van Wijk
body: Have been playing around a bit and the below message structure now seems to work for me. Looks like the \* was causing some issues in teams.

![message.png](https://community.atlassian.com/t5/image/serverpage/image-id/229844i67C902F7365D14FE/image-size/large?v=v2&px=999 "message.png")


author: Bill Leonard
body: [@Tanja van Wijk](/t5/user/viewprofilepage/user-id/4989674) - the \* was creating a bullet list for me. When I removed the \* there were no line breaks. I'm doing something similar to what you have above now.