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.
You can use Scriptrunner's JQL issueFunction in linkedIssuesOf("subquery")
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
ssueFunction in linkedIssuesOf("project in (TES) and issuetype=bug") OR (project = TES and issuetype = bug)
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...
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