Forums

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

How to add parent's key to summary of a child?

Eric C March 21, 2024

Hi,

In our daily talks, we refer quite a lot to that "ABCDE-45678" ticket, and that "GHJKL-87654" ticket.

It would help us a lot to have the parent's Key at the start of a Child's summary, eg "ABCDE-45678, do this and that".

I've managed with an automation that is adding - at creation - that Key to the summary, but can't figure out 1) how to keep?/add?/concatenate? ...the original text "do this and that" and 2) add extra ", " in between. Any suggestion? Or a better solution, than automation?

Final result should look like
{{issue.parent.key}} + ", " + {{issue.summary}}

2 answers

1 accepted

1 vote
Answer accepted
Tugba Capaci
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.
March 21, 2024

Hi @Eric C 


The correct syntax is:

{{issue.parent.key}}, {{issue.summary}}

You can use this directly.


You don't need to add  + " "+



Tugba
actioner.com 

Eric C March 21, 2024

Why complicate things..... :D
Thanks!

Like Tugba Capaci likes this
0 votes
Karan Sharma
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 3, 2024

Hey @Eric C 

Any chance you could post the complete script here? I have a similar use case and feel your script could help me.

Suggest an answer

Log in or Sign up to answer