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

Accepted Answer
1 vote

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 Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

469 views 7 5
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