Hello,
This is a ScriptRunner JQL
How to write this like a scripted condition, I need to add multiple fast track post functions and I need this as a condition
OR is there another way to add JQL conditions to fast-track post function
issueFunction in subtasksOf("\"Epic Link\"!=empty")
Hi Olga
If you are trying to execute any code based on JQL result, you can use something like this:
...
//for JQL requests
def jqlQueryParser = ComponentAccessor.getComponent(JqlQueryParser)
def searchProvider = ComponentAccessor.getComponent(SearchProvider)
def user = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
SearchRequestManager srm = ComponentAccessor.getComponent(SearchRequestManager.class);
def jqlS = "<your JQL>";
def query = jqlQueryParser.parseQuery(jqlS);
def resultIssues = searchProvider.search(query, user, PagerFilter.getUnlimitedFilter())
def issList=resultIssues.getIssues();
if(issList.size()!=0){
//do something
}
else{
//do something
}
...
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.