Xporter template condition on epic name


I'm trying to export UserStories with an custom Xporter template and have the epic name in the export if the UserStory belongs to an Epic.

The syntax bellow works if there the UserStory belongs to an Epic, but if not I get this text: '${Epic Link.Epic Name}'.

%{('${Epic Link.Epic Name}'.length > 0) ? '${Epic Link.Epic Name}': '-'}     


Any ideas?

Many thanks!


1 answer

1 accepted

Hi @Loredana,

You can do this: 

Link.Epic Name}'.indexOf('Epic Link.Epic Name’) > 0) ? '-': '${Epic
Link.Epic Name}'}

It's not a good solution but works.




Great! That works! Many thanks!!! Loredana

A New Feature(Issue) was created. The means is to provide a new property that indicates you if the issue has an Epic Link. You can follow its status here: http://jira.xpand-it.com/browse/XPORTER-306

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,207 views 13 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot