Skip to content

Instantly share code, notes, and snippets.

@famzah
Forked from jechlin/ABC.groovy
Last active August 29, 2015 14:09
Show Gist options
  • Save famzah/bf430c3f2cf8ba5baf57 to your computer and use it in GitHub Desktop.
Save famzah/bf430c3f2cf8ba5baf57 to your computer and use it in GitHub Desktop.
package com.onresolve.jira.groovy.jql
import com.atlassian.crowd.embedded.api.User
import com.atlassian.jira.jql.query.QueryCreationContext
import com.atlassian.jira.util.MessageSet
import com.atlassian.query.clause.TerminalClause
import com.atlassian.query.operand.FunctionOperand
import org.apache.lucene.search.Query
class ABC extends AbstractScriptedJqlFunction implements JqlQueryFunction{
@Override
String getDescription() {
"gets issues with ABC in the summary"
}
@Override
List<Map> getArguments() {
[
[
"description": "Subquery",
"optional": false,
]
]
}
@Override
String getFunctionName() {
"abcFunction"
}
def String subquery
@Override
MessageSet validate(User user, FunctionOperand operand, TerminalClause terminalClause) {
}
@Override
Query getQuery(QueryCreationContext queryCreationContext, FunctionOperand operand, TerminalClause terminalClause) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment