Error using issueFunction IN linkedIssuesof

Juan Pablo Bruno December 16, 2020

Hello,

 

I'm generating a simple filter using the linkedIssueof function.

The filter is issueFunction IN linkedIssuesof(filtername,"relates to")

And I'm getting this error message all the time:

  • Error in scripted function: linkedIssuesOf, see below
  • Error in the JQL Query: Expecting operator before the end of the query. The valid operators are '=', '!=', '<', '>', '<=', '>=', '~', '!~', 'IN', 'NOT IN', 'IS' and 'IS NOT'.

From all the material I read, I couldn't find an article  that help me out.

Thanks

2 answers

1 accepted

1 vote
Answer accepted
Sudarshan
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.
December 16, 2020

Hello @Juan Pablo Bruno  Welcome
Why dont you try this

Provide your JQL direct query.

issueFunction IN linkedIssuesof("your jql sub query")



 

Juan Pablo Bruno December 16, 2020

Hi Sudarshan, it actually worked when I used issueFunction IN linkedIssuesof ("filter=Myfilter"). All other combinations were not working. So I think I got it solved.

Like Sudarshan likes this
0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 16, 2020

Your use of linkedIssuesOf is nonsense as you've given it in your question, I'd worry about where you got it from.

The actual usage is:

linkedIssuesOf(Subquery, [link name])

This is similar to parentsOf and subtasksOf, in that it will return the linked issues.

For example, try this instead:

issueFunction in linkedIssuesOf("status = Open", "blocks")
Juan Pablo Bruno December 16, 2020

I don't think I understood what you're saying. I'm using the way you're posting, so I don't see a nonsense.

Thanks anyway. I fixed already.

 

BTW, the example you provided didn't worked for me neither.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 17, 2020

The sample code worked fine, it's straight out of the docs.

The search you posted was nonsense because you put in "filtername" instead of a JQL search.  That's where the function was choking on "valid operators" you had not put in a real search.

Like Tania Ocampos likes this

Suggest an answer

Log in or Sign up to answer