Forums

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

How can we add "Parent ID" details in comments section while cloning JIRA issue?

Nitin Kirnapure
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!
March 14, 2023

Hello,

How can we add source "Parent ID" details in the comments section while cloning the JIRA issue?

We have automation for adding comments but what should be the JQL for adding Parent JIRA ID information?

Basically, we should be able to trace back the source from where the JIRA issue is cloned. 

See the screenshot attached for more clarity.

Thanks

Screenshot 2023-03-14 173053.jpg

1 answer

0 votes
Trudy Claspill
Community Champion
March 14, 2023

Hello @Nitin Kirnapure 

Welcome to the Atlassian community!

When you Clone an issue Jira does not consider that the same as creating a parent/child relationship between the two issues.

You can use a Lookup Issues action to get the list of issues that the new issue was cloned from. There should only be one issue in the list.

Screen Shot 2023-03-14 at 3.48.36 PM.png

To then get the issue key of the one issue returned by the Lookup Issues action use this smart value:

{{lookupIssues.first.key}}

(Note that is a capital "i" for Issues.)

Nitin Kirnapure
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!
March 15, 2023

Hello @Trudy Claspill 

Thanks for your response!

But maybe I was not clear enough to explain the query.

I wish to have the (source) JIRA ID in the comments section.

JIRA issue is building a relation under "Linked Issues" clones, See the attachments below.

 

I just need the same JIRA ID to reflect in the comment section.

See the Yellow Highlighted part in the screenshot 

Screenshot 2023-03-15 134008.jpg

Trudy Claspill
Community Champion
March 15, 2023

The answer I provided will address your need.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events