How to add manipulated parent key to child issue summary?

Lopez, Dominique
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!
January 8, 2025

I have an automation that creates multiple child issues for various types of tasks. What I would like to do is be able to take the key of the parent without the Project identifier and include that as a prefix to the child summary. 

Current Solution

  • Parent: ABCD-1234
  • Child: Task: Do this and That

Future Solution

  • Parent: ABCD-1234
  • Child: 1234 - Task: Do this and that

Is there a way to manipulate the key when inserting it into the summary?

 

I know as part of the automation i can include the Key which results in ABCD-1234 Task: Do this and that but can i remove the project identifier?

 

Ive tried a few items to include and a few other but nothing returns.

{{issue.parent.key.right(5)}}

 

{{issue.parent.key.remove("ABCD-")}}

 

Any help is appreciated.

1 answer

1 accepted

6 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 8, 2025

Hello @Lopez, Dominique 

Welcome to the Atlassian community.

This should work:

{{issue.parent.key.substringAfterLast("-")}}

If it doesn't work, please provide a screen image showing your entire rule, and a screen image showing the details of the step where you are trying to use the smart value.

Lopez, Dominique
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!
January 9, 2025

Thanks for the recommendation! Initially it did not work for me but it was not necessarily the manipulation aspect of it. Because of how the rule is setup i didn't have to use issue.parent.key and i just used issue.key. 

{{issue.parent.key.substringAfterLast("-")}}

{{issue.key.substringAfterLast("-")}}

This was able to give me what i needed, Thanks

 

ruleset.png

 

Like Trudy Claspill likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events