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

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
Community showcase
Posted Oct 09, 2018 in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

242 views 6 0
Join discussion

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