Can I pass in a JQL query string as a jql function argument?

Simon Huang May 18, 2017

I am creating a JQLFunction plugin where I create a JQLFunction that accepts a jql query string as an argument?

EX: 

project = myCustomFunction("assignee = currentUser() AND resolution = Unresolved order by updated DESC").

My goal is to be able to take that query string argument and execute the jqlQuery, perform some action on the issues before returning the Query Literals. I am assuming most of my logic will be in the getValues() method.

Is this possible? Can I see an example of how I would pass in the JQL query String.

1 answer

0 votes
MattS
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.
May 18, 2017

Save the first filter as Filter X

Then use the JQL

key in filter("Filter X")

(roughly)

Simon Huang May 18, 2017

Hi Matt,

can I do this without a filter? I want users to be able to put any query string they want as argument and my function should be able to take it in and parse it and return updated issues.

Like ROBERT Denis likes this

Suggest an answer

Log in or Sign up to answer