What version are you using? It's only in 2.1-beta-x.
You need to use: issueFunction in hasLinks("related by")
linkedIssuesOf is a bit more complex, it's for finding the issues linked to issues selected by the subquery.
We are uing Script runner plugin since long time but I am not aware of Scripted JQL funtions. when i try to execute a function (issueFunction in hasComments()), i am getting the following error message.
Unable to find JQL function 'hasComments()'.
Unable to find JQL function 'linkedIssuesOf(status = Reported, blocks)'.
It works, you're not explaining what you need, and you're using incorrect syntax. JIRA provides no mechanism to show an error message when there is an exception in that method, that's what it shows.
You can try a free plugin I've made: Easy Links for JIRA. It provides two new custom field types: Single Issue Link Picker and Multiple Issue Link Picker. These custom fields are displayed as dropdown select lists, which you can filter and autocomplete by typing on it (see screenshots). Also, you can configure the customfields to restrict the available issues to select (using a JQL expression when creating the custom field), and the link type that the field will be associated to. When you select a value, a new issue link is created between the current issue and the selected one(s), that you can manage as a regular issue link.
In addition, you can use the custom field in JQL queries (for example: "Blocking Task" = TEST-123), and in dashboard gadgets (pie charts, filters, etc).
I hope it can solve your issue,
See how to use Jira on the go! Demo Den Episode 5 is here: meet Jira Mobile with Jira Product Manager Rayen Magpantay. Demo Den is in our monthly series where a Jira PM demonstrates...
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