Hi Team,
I was able to create an automation ticket from one project EPIC to another project when some field conditions were met using the JMWE (Create / Clone Issue(s) Post Function), and the link to the new issue is "relates to."
In the target project description, we have a default description that should display the text like this.
Epic : where it came from, the Epic ticket number
Confluence : We have a default Confluence URL for this. My question here is, how to display the Epic ticket number here, which groovy template or expression?
Do you please suggest which groovy expression should i add here to get the related epic link in the description ?
Hi Lakshmi,
You can use the following Groovy template to get the related Epic key in the description:
Epic: ${issue.getLinkedIssues("relates to")*.key.join(", ")}
Confluence Page: ------
If you only want the first related Epic, use this:
Epic: ${issue.getLinkedIssues("relates to")?.first()?.key}
Confluence Page: ------
Thank you for your quick response @sanam malleswari . Its not working. I believe the problem is, When a ticket is created, a default description is added, but the Epic is not linked to the ticket initially. Instead, it only gets tagged to the ticket after it has been created.
It showing in the test groovy template, but not showing after ticket is created.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lakshmi,
Did you try using this expression instead of the one you mentioned?
<<{issue.getLinkedIssue("relates to")}>>
Let me know how it goes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your quick response @Ahmed Arslan No, its not working.
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.