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
}
...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.