Using a JMWE 'Create Issue' post function, on a Story parent issue, I am creating a subtask. In that process, I want to set the Summary of the newly inserted subtask to the Epic Name from the Epic Link on the current issue which is in the 'TST' project in this example.
The system has no mapping to the Epic Name since the Story has no Epic Name so it only returns the textual part of this template.
Foobar: {{ issue.fields["Epic Name"] }}
Foobar:
I can use the Epic Link but this only provides the key. There does not appear to be a means to map from the epic link to the epic name or am I missing something obvious here?
Foobar: {{ issue.fields["Epic Link"] }}
Foobar: TST-413
For clarity, the epic name behind TST-413 is 'Hello World' so I need to set the Summary to this.
Foobar: Hello World
Hi Paul,
You can use the epic filter for the story to access the epic name, something like this should work:
{{ issue| epic("customfield_10011")|field("fields.customfield_10011")}}
(i) Replace customfield_10011 with the Epic Name customfield ID <if it is not customfield_10011>
or you can use epic links to get it:
{{ issue.fields["Epic Link"]|issue|field("fields.customfield_10011")}}
Hello Sayed. Thank you very much. Either template works great. I'm diving in next to learn how this works. I've read most of the JMWE documentation but I'm likely missing a key page on basics about how we traverse the data like this. I appreciate your time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.