Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Include the Epic Ticket in the description when a ticket is created from that Epic to another projec

Lakshmi CH
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 11, 2025

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 ?

epiclink1.pngepiclink2.png

2 answers

0 votes
sanam malleswari
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 13, 2025

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: ------


Lakshmi CH
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 14, 2025

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.

0 votes
Ahmed Arslan April 13, 2025

Hi Lakshmi,

Did you try using this expression instead of the one you mentioned?

<<{issue.getLinkedIssue("relates to")}>>

Let me know how it goes.

Lakshmi CH
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 14, 2025

Thank you for your quick response @Ahmed Arslan  No, its not working.

Suggest an answer

Log in or Sign up to answer