Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Why do I get a server error trying to use ScriptRunner hasLinks() function?

Tom Woodling
Contributor
October 31, 2019

Copy pasting the example JQL query from https://scriptrunner.adaptavist.com/5.6.6/jira/jql-functions.html#_haslinks returns 'Error occurred communicating with the server" - this is the same with any JQL I write that attempts to use this function.  Also curious, hasLinkType("XYZ") works fine.  Jira Server v8.2.3, JSD v4.2.3 and ScriptRunner v5.6.6 currently installed.srfuncterr.JPG

I also get this error in the Chrome Dev Console...chrdeverr.JPG

1 answer

1 accepted

0 votes
Answer accepted
Tom Woodling
Contributor
November 5, 2019

Adaptavist answered my issue report on their JSD to advise this is due to an incompatibility with the JQL Tricks function of the same name, and sure enough if I disable the other function, hasLinks() works exactly as expected https://scriptrunner.adaptavist.com/5.6.6/jira/jql-functions.html#_function_name_clashes_with_other_plugins

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events