Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

XPORTER custom template - dateformat issue

Edited

Hello,

probably i have a trivial question, but I would really appreciate your help.
For one of my excel field I used:
#{for comments}
#{if (%{'${Comments[n].AuthorFullName}'.equals('AuthorFullName')})}
${dateformat("dd-MM-yyyy"):Comments[n].Created}
#{end}
#{end}

,but this script doesn't work. I used same condition also for .Body and that works.

For this one I would like to export date when comment was created from specific person.

Note:
if I change dateformat to only MM-dd or dd-MM, than it works. Also found similar issue that if I want to export english-UK format than the whole JIRA language has to be setup in english-UK, but I already have my JIRA in english-UK and am also not abel to export US dateformat as well.

There is comment body script which is working fine.
#{for comments}
#{if (%{'${Comments[n].AuthorFullName}'.equals('AuthorFullName')})}
${Comments[n].Body}
#{end}
#{end}

Thank you in advance.
Filip

1 answer

0 votes
Levente Szabo _Midori_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Jan 16, 2023

Hi @Filip Zizka 

I'm sure the team behind the app would be the best source for a reply. While you wait for a response, let me mention that Better Excel Exporter comes with a default template for handling and exporting comments that doesn't require any script modification or template customization.

It automatically exports the comment author, comment date, and comment body in Excel. You can filter it for a specific user and (in case of Jira Service Management) even decide if you want to leave internal comments out (greyed in the below sample export).

Here is an article + video about how simple it is and see an example export below.

all-comments.png

(Please note that I'm part of the team developing Better Excel Exporter.)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events