Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Need help in getting Sequence numbers within table in email body

Altamash Heroli
Contributor
April 5, 2025

Issue

I have written table within my Send email component.. My Table renders absolutely fine. Now, I am trying to add Incremented Serial numbers to each row of my table. But I am not able to do that

Solution tried

Added a variable 

7.0.png

 

Added it in my send email body as 

8.0.png

 

But my Email shows the # field blank

 

9.0.png

 

1 answer

0 votes
Tomislav Tobijas
Community Champion
April 11, 2025

Hi @Altamash Heroli ,

The issue here is that, firstly, you don't have 'initial' value for {{counter}} smart value. I believe {{counter|1}} would set it to one by default although you'll might need to convert that to number type.

BUT, couldn't you construct something like that via HTML by itself? Without needing to use smart values?

There's one article on the topic for DC but you might give it a try on cloud as well: How to send a notification with a numbered list of issues with Automation for Jira 

With <ol type="1"> parameter you might get what you're looking for (but, again, I haven't tested it out).

Cheers,
Tobi

Altamash Heroli
Contributor
April 17, 2025

Hi @Tomislav Tobijas 

I tried with all the following combinations

  • {{#=}} {{counter|1}}+1{{/}}
  • {{#increment}} {{counter|1}}{{/}}
  • {{#=}} {{counter.asNumber|1}}+1{{/}}
  • {{#increment}} {{counter.asNumber|1}}{{/}}
  • {{#increment}} {{counter.value.asNumber|1}}{{/}}
  • {{#=}} {{counter.value.asNumber|1}}+1{{/}}

but unfortunately, my output is still the same. 

Am I missing something here?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events