Xporter template condition on epic name

Hi,

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!

Loredana

1 answer

1 accepted

This widget could not be displayed.

Hi @Loredana,

You can do this: 

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

It's not a good solution but works.

Thanks.

Cheers,

RMRodrigues.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

130 views 2 0
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