Forums

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

Jira Cloud - issuefunction - how do i get the Parent Key?

Dolly Kirubavathi
Contributor
October 4, 2022

issueFunction in linkedIssuesOf("Project = XXX and issuetype = Epic", "is a Parent of")

I have a ScriptRunner  Enhanced Search Filter for the above JQL.

Question:  Which column will carry the Epic Key ? I need that in my listing so I can use it in a table transformer confluence macro.

 

Any help is greatly appreciated!

Thanks!

 

1 answer

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Champion
October 4, 2022

Hello @Dolly Kirubavathi 

For issues in a Company Managed project the field "Epic Link" hold the Epic issue key for the Epic that is the parent of a given issue.

For issues in a Team Managed project the "Parent" field holds the Epic issue key for the Epic that is the parent of a given issue.

Dolly Kirubavathi
Contributor
October 4, 2022

Thanks!

This is a team managed project. the Parent field is blank. How do i make sure it gets populated with the EPIC?

Trudy Claspill
Community Champion
October 4, 2022

If the issues you are retrieving are not child issues of an Epic then the field will be blank. You would need to go to those issues individually and add them to the appropriate Epic and then the field will be populated.

Dolly Kirubavathi
Contributor
October 4, 2022

When I go to my Task's Linked Issues I see this:

 

is a Child of 

EPIC 

 

but still when i look at the task the parent is blank?

Trudy Claspill
Community Champion
October 4, 2022

Hello @Dolly Kirubavathi 

Can you possible provide a screen image of that?

I think what you have done is used the generic Issue Linking functionality to create the link between the issue and the Epic. That is not typically how child issues are associated to a parent Epic. 

See here in this screen image of an Epic there is a section for Child Issue of the Epic and a separate section for the Linked Issues that were associated to the Epic through generic issue linking.

Screen Shot 2022-10-04 at 1.18.13 PM.png

 

If I click through on TS-2 (the child issue of the Epic) then you will see its parent Epic specified in the breadcrumbs at the top of the screen.

Screen Shot 2022-10-04 at 1.18.34 PM.png

It is only when the issue and Epic are linked in this manner that the Parent field will get filled in.

Is there a reason you are using the generic issue linking feature to make issues "children" of Epics rather than using the native epic/child functionality.

Dolly Kirubavathi
Contributor
October 4, 2022

I think that is where our issues lies....let me dig in a little deep and let you know. Thanks so much for your quick response!

Dolly Kirubavathi
Contributor
October 4, 2022

Question: 

When I click on "Add a child issue"  my epic doesn't give me an an option to choose an existing issue. I only have Create and Cancel. I am the admin of this project.

Any idea why?

Trudy Claspill
Community Champion
October 4, 2022

In a Team Managed project you have to go to the existing issue and click Add Epic in the breadcrumbs at the top. That will allow you to select an existing Epic to which you want to add the existing issue as a child.

Alternately on a Backlog screen that has the Epics panel displayed, you can drag an issue from the issue list section and drop it on the Epic in the Epics panel to which you want to add it.

From the Epic itself you can only create brand new child issues.

Dolly Kirubavathi
Contributor
October 5, 2022

How do I do this if its a company managed project?

thanks!

Trudy Claspill
Community Champion
October 5, 2022

How can you do what, exactly? Your post has included a couple of "how do I..." questions so far. :)

If your issues are in a Company Managed project then the standard issue types (i.e. Story, Task, Bug, etc.) should have a field called Epic Link that holds the issue key for the parent Epic.

The "Epic Link" field can be used in filters to find all the child issues of a specific Epic thus:

"Epic Link" = <epic issue key>

The "Epic Link" can be added to the columns displayed in search results output to show you the parent Epic for an issue.

The "Epic Link" field displays in the Details area on the right side of the issue view, showing the issue key for the Epic that is the parent of the issue currently being viewed. If you need to change or set the parent Epic of an issue you can edit that field directly to clear it or change the parent Epic. 

Dolly Kirubavathi
Contributor
October 5, 2022

how do I add the Epic Link to the task 

"Epic Link" field worked.

thanks much!

Trudy Claspill
Community Champion
October 5, 2022

"how can I add the Epic Link to the task"

Are you talking about adding the Epic Link field to the Task issue type in a Company Managed project? The field may already be available for the issue but not displayed.

Try expanding the More Fields section below the Details section to see if the field is already available but not showing because it is empty.

Screen Shot 2022-10-05 at 10.11.29 AM.png

You can also click on the Configure option to see if the field is in the Hidden Fields section. If it is, you can drag it onto the layout section to make it visible.

Dolly Kirubavathi
Contributor
October 5, 2022

Your solution worked....thanks much!!!! super helpful!!! Appreciate it.

Trudy Claspill
Community Champion
October 5, 2022

You're welcome!

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.

Register now
AUG Leaders

Atlassian Community Events