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)');
}
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.