Skip to content

Instantly share code, notes, and snippets.

@famzah
Forked from jechlin/ABC.groovy
Last active Aug 29, 2015
Embed
What would you like to do?
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