Forums

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

hasLinks & linkedIssuesOfRecursive in Jira Cloud

Pawel Rozek August 20, 2019

On my on-prem jira server, scriptrunner solves my problem by allowing me to use these two issueFunction to find stories that are linked to defects that have certain criteria.

Is there a way to perform similar jql in Jira Cloud? 

According to scriptrunner site: https://scriptrunner-docs.connect.adaptavist.com/jiracloud/jql-functions.html one function is not available and the other is In development for the cloud. Any help would be appreciated, as I'm out of ideas.

2 answers

1 accepted

0 votes
Answer accepted
Kristian Walker _Adaptavist_
Community Champion
August 21, 2019

Hi Pawel,

Thank you for your question.

I can confirm that the documentation page that you have linked to above is an old cached version of the documentation.

I can confirm that ScriptRunner for Jira Cloud does contain the hasLinks function as a JQL alias as described in the documentation page here.

As it is a JQL Alias you do not provide the issueFunction in part of it and the documentation page above shows how to run a query using the hasLinks JQL Alias inside of Jira Cloud.

You can also use the linkedIssuesOfRecursive() function inside of the Enhanced Search Page as described in the documentation page located here.

Finally, I can also confirm that you can see more detailed information on the differences between the cloud and server versions inside of our documentation page located here.

If this response has answered your question can you please mark it as accepted so that other users can see it is correct when searching for similar answers.

Regards,

Kristian

Pawel Rozek August 21, 2019

This is great, thank you Kristian, exactly what I was looking for.

Kristian Walker _Adaptavist_
Community Champion
August 21, 2019

Hi Pawel,

I am glad that my response, helped you to solve your requirements.

Regards,

Kristian

Thierry Dalon
Contributor
January 18, 2024

The link to the hasLinks alias does not work and I couldn't find any documentation about this hasLinks now.

Is it really support in the Cloud?

James Hendrix
Contributor
June 2, 2025

@Thierry Dalon All "add-ons" to Jira have been effectively moved to Apps. Adaptavist ScriptRunner add-on is now separate from the normal issue search and filter dialogs, though integrated in a weird way. It is now called ScriptRunner Enhanced Search. If you have access to it, it would be found in either the Apps top menu bar and/or on certain screens near the bottom of the left nav panel.

Such "enhanced search" filters must be managed outside of the normal filter function. Filters created through the Enhanced Search interface do create "normal" filters, but care must be taken not to modify them through the normal filters interface. You will want to enable the dynamic sync option when you create the filter (checkbox when saving the enhanced search filter). You can determine that a filter was created by SRES by examining the filter description - it will say something like, "Filter managed by ScriptRunner: ..."

0 votes
Muhammad Ramzan(Atlassian Certified Master)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 20, 2019

On Cloud JQL Search Extensions for Jira & reports can help you to  get the required results.

Please look into following queries which can help you.

 

 

 

Then, find the stories which are parents of issues matched by the base query:

type="Story" AND parentOfQuery="status!=\"Done\" AND priority=\"High\""

 

Find all issues which are blocked by another issue

linkType = "is blocked by"

Find all issues which are linked by issues in "To Do" status. 

linkedIssueStatus = "To Do"

 

Find all issues which are linked by Bugs. 

linkedIssueType = Bug

 

I just provided few examples, which i used to , you can find more queries here

https://jqlsearchextensions.atlassian.net/wiki/spaces/SEARCH/pages/3375124/JQL+Reference+Cloud#JQLReference(Cloud)-Links

Suggest an answer

Log in or Sign up to answer