How would I generate a list with new line & url from #lookupIssues?

Angel
Contributor
November 6, 2024

Hi comunity!

We need send a mail with the stories from a started sprint, so I get the list with "lookupIssues" in automation, but when I tried create the mail with hmtl its result as a sentence without urls: 

H1, H2, H3, ....

 

I want:

H1

H2

H2

 

I shared my code:

 

<span style="font-size: 12px;"><strong><a href='{{url}}'>{{#lookupIssues}}"{{summary}}",{{^last}}{{/}}{{/}}<br></a></strong></span>
Thanks for you help.

1 answer

1 accepted

0 votes
Answer accepted
Onur Mert Gürses
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 7, 2024

Hello can you try this:
<html>
<body>
<h2>Current Sprint Stories</h2>
<p>Below are the links to the stories in the started sprint:</p>
<ul>
{{#lookupIssues}}
<li><a href="https://your-jira-instance-url/browse/{{key}}">{{key}} - {{summary}}</a></li>
{{/lookupIssues}}
</ul>
<p>Regards,<br>Your Team</p>
</body>
</html>

Angel
Contributor
November 12, 2024

Thanks, that works for me.

Like Onur Mert Gürses likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events