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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published 2 hours ago in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

17 views 0 2
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