Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Single Jira Jql to get the list of linked issues fileds

I will explain the case for which I need a Single JQL.

We need to query a Jira issue which has a linked issue in and and get the specific fields of both current issue and Linked issue.

For example there is a jira issue called TEST-123 which has a linked issue called SAMPLE-123.

Both the Jira issue has a custom field called Notes.

Now the JQL has to return the custom fields value Notes from the TEST-123 and SAMPLE-123 in single Query.

I know we can get a list of linked issues and then fetch the linked issues required fields but the time to run the script will be longer as we are querying two times.


Please any help me on this.

That would be great.


Queenmary Bastin

1 answer

1 vote
Olga Videc Community Leader May 18, 2021

Hello Queenmary,

You can use Scriptrunner's JQL issueFunction in linkedIssuesOf("subquery")

For example

project is Test it's key is TES

This will fetch all the issues that are linked to issues in project TES

issueFunction in linkedIssuesOf("project in (TES) and issuetype=bug") 


then you just add OR and add JQL for the rest of the issues you want

project = TES and issuetype = bug 

Full JQL

ssueFunction in linkedIssuesOf("project in (TES) and issuetype=bug")  OR (project = TES and issuetype = bug)

BR, Olga 

Hi Olga,

Thank you for your response.

But here what I need is I want to get the custom field for example "Notes" from the linked issues.

Get the linked issue of a Project Test and get the Custom Field named Notes value of the linked issues.

Can you please help on this...

Queenmary Bastin

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you