Printing information from parent epic on subtask export

Carol Borstnik March 12, 2024

I have an Xporter document that I'd like to have print information from the parent epic. My use case is as follows:

  1. Subtask is closed, automation triggers the xporter document to generate (I have this working fine)
  2. that document includes information from the parent epic: specifically the summary and description from the epic

 

1 answer

1 accepted

0 votes
Answer accepted
Christopher Maxwell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 13, 2024

Hi @Carol Borstnik , I haven't worked directly with Xporter... But, you'll first want to make sure the Epic Link field is available on subtask issues.

Next, try this syntax in the Xporter template:

Parent Epic Summary: {{issue.parent.fields.summary}}
Parent Epic Description: {{issue.parent.fields.description}}

Or, if you are needing to loop through epics:

#{for issue in issues}
Subtask Summary: ${issue.Summary}
Subtask Description: ${issue.Description}

#{if issue.Epic Link}
Epic Summary: ${issue.Epic Link->Summary}
Epic Description: ${issue.Epic Link->Description}
#{end}
#{end}

 

  • The #{for issue in issues} loop iterates over the issues being exported.
  • ${issue.Summary} and ${issue.Description} print the subtask's summary and description.
  • The #{if issue.Epic Link} condition checks if there is an epic linked to the subtask.
  • ${issue.Epic Link->Summary} and ${issue.Epic Link->Description} access the linked epic's summary and description.

 

 

If that doesn't work, you can check out this resource - but, it's complex: https://confluence.getxray.app/display/public/XPORTERCLOUD/Exercise+3+-+How+to+Populate+Epic+Links    

Perhaps someone with more Xporter experience will jump in here.

Christopher Maxwell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 13, 2024

Also, this overall post looks like a duplicate of the post: https://community.atlassian.com/t5/Jira-Software-questions/Printing-information-from-parent-epic-on-subtask-export/qaq-p/2637756

 

However, the other post has an "Xporter" tag on it, which is helpful and might draw more attention.

Suggest an answer

Log in or Sign up to answer