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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

125 views 4 9
Read article

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