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 edited

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
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events