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

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 vote

Save the first filter as Filter X

Then use the JQL

key in filter("Filter X")

(roughly)

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.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

86 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you