My Req is ,
I want to get existing assigned issues using JQL in scriptrunner for that I am using following code but my requirement is ,I want to store user in 1 custom field and want to pass that custom field to my JQL like below ,I am adding it but my code is not working ,Can anyone help me on priority basis or do we help me with another available code to do the same.Thanks in advance .
Collection<ApplicationUser> users= ComponentAccessor.getGroupManager().getUsersInGroup("AVO-support_Team")
def groupUsers = users.collect {
def userName =it.getUsername();
//First user
def query = jqlQueryParser.parseQuery('project = "BRD" AND (issuetype = "Incident" || issuetype = "Service Request") AND assignee in (userName)');
}