Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • Script runner: JQL function gets error: This type not implemented in this release. A stacktrace has been logged.

Why some fields are not compatible with 'is' and 'is not' operator and how to identify them

Lalit Salunkhe
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 11, 2022

Hi,

I have a 'linkedissue' field in which some filed contain values and some are blank. I want to filter out the blank values. when I try to write JQL it does not support 'is' and 'is not' operators. Can you please help how I can achieve this?

 

Advice at earliest.

Thanks.

2 answers

1 accepted

0 votes
Answer accepted
Steinar Bang
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 Champions.
December 17, 2013

I had set the return type to "Any", since what I wanted was User but not one of the other alternatives ("IssueFunction", "Project", "Version", "Component", "ProjectCategory", "Issue").

Switching the return type to something other than "Any", still with the pasted MyProjects script in the inline, gave various returned values (a collection of two items interpreted variously).

Could the message come from the return type "Any" not being supported for getValues returns?

If so, I guess I will have to reformulate the JQL function to return one of the allowed types. What I actually wanted this function for, was to create a query for issues reported by users that have a particular role in a particular project. So I will try changing the function from hasRole to issuesReportedByRole.

0 votes
Steinar Bang
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 Champions.
December 17, 2013

Finding all issues reported by a particular user doesn't seem to be easy in the API, except by iterating over all issues and checking for the reporter. This was one of the reason I tried to go the hasRole way in the first place. I had hoped to be able to do something like this in JQL:

reporter in hasRole("Somerole")

Is there a way to query the API for all issues reported by a particular user, that doesn't involve iterating over all issues?

Thanks!

- Steinar

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events