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 votes

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 Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

381 views 1 13
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot