syntax with ScriptRunner JQL Functions and autocomplete

Durell Demartini January 14, 2023

Hello,

When building an advanced JQL that includes "in," the autocomplete options appear to select from:

project =ABC and issuetype in (Task, Story)

So in other words, I type the opening parenthesis after "in" and then start to see a short list of issue types to select from.

I've noticed that this is not the case when using ScriptRunner JQL Functions.

With this query, I've literally had to type in Task and Story because the short "autocomplete" list doesn't appear.

issueFunction in linkedIssuesOf("project = ABC AND issuetype in (Task, Story)")

This functionality comes in handy when querying fields where the options may not be known, or to build the query more correctly. Is there a syntax "trick" to get the possible options of a field to appear in a list while building ScriptRunner JQL Functions?

Thanks in advance for your time. 

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Stephen Wright _Elabor8_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 14, 2023

Hi @Durell Demartini 

Not that I know of - I've always had to manually type in JQL inside of Scriptrunner JQL functions.

You can always build the sub-query first as a normal query (without the issueFunction parameters), then build the Scriptrunner part second?

Ste

TAGS
AUG Leaders

Atlassian Community Events