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

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

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

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

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
Community showcase
Published in Jira Service Desk

The Complete Guide to Atlassian for ITSM

Hi Atlassian Community! This is Teresa from the Atlassian team. My colleague Paul Buffington @Buff and I are excited to share a brand new ITSM resource we’ve created – "The Complete Guide to At...

2,187 views 15 22
Read article

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