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

Scriptrunner JQL function has linktype does not recognize valid link types

Daniel Deftos Nov 07, 2014

While using the Scriptrunner JQL function "has linktype", it does not seem to recognize many of the link types we have established in our JIRA instance. It returns an error message stating "Cound not find any issue link type with name: "name of link type". It then enumerates the link types it does recognize, which is not an exhaustive list.

How do we get this JQL function to recognize the link types in our instance?

6 answers

1 accepted

0 votes
Answer accepted
JamieA Nov 11, 2014

Some functions take types, some take "link descriptions", from which you can infer whether it's an outward or inward link. linkedIssuesOf is probably whaty you want. In recent versions the "link desc" is optional

0 votes
JamieA Nov 08, 2014

That's odd... please could you attach screenshots which 1) shows the jql query and the error message and 2) a screenshot of Admin -> Issue Linking, which will show the link type names and descriptions.

0 votes
Daniel Deftos Nov 08, 2014

Your response caused me to look at little more closely at our setup and the specifics around the problem. It has been educational. It seems that there are link types, which is what the JQL filter is looking for. In my instance, in fact the error message appears accurate as the way I have formed the filter I am in fact NOT looking for types but seems we are looking for the "inward description" applied to a particular link type. In my instance, we have JIRA Capture, the link type is "Bonfire Testing". However our user is looking to capture issues which have been linked with the Inward Description "Testing discovered". It seems we need to use the linkedIssuesOf function ?

0 votes
JamieA Nov 09, 2014

Some functions take types, some take "link descriptions", from which you can infer whether it's an outward or inward link. linkedIssuesOf is probably whaty you want. In recent versions the "link desc" is optional.

0 votes
Daniel Deftos Nov 10, 2014

Thank you Jamie. How do I mark this as accepting your answer?

0 votes
JamieA Nov 11, 2014

No worries, I did it.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

Join our webinar: “Asset Management: The Role of Context in ITSM” with Atlassian & Riada

  Hi Atlassian Community! This is Teresa from the Jira Service Desk team. On June 19th, I’ll be hosting a webinar “Asset Management: The Role of Context in ITSM” with Atlassian Partne...

152 views 2 3
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