I'm using in my script this JQL function from Profields plugin:
SearchService.ParseResult parseResult = searchService.parseQuery(ApplicationUsers.toDirectoryUser(user), "project in profieldsOperator(Language,\"=\",EN)")
When I run this script from Script Console everything works properly. But when I run it from script file as a scheduled service I get this error:
Script Runner [jira.profields.jql.JqlFunctionProfieldsOperator] Error JQL function profields when execute getValues() in class com.deiser.jira.profields.jql.JqlFunctionProfieldsOperator
What could be the reason for such error?
Thanks in advance for your help.
Thanks for your prompt reply.
You are genius, adding this one line solved the issue.
BTW. Having this opportunity, may I transition an issue and add comment in the same step? Currently I'm doing this with two methods:
commentManager.create(issueManager.getIssueObject(issue.id), user, comment, true); ... workflowTransitionUtil.setAction(1021);
and therefore I'm getting two notifications.
It would be much more user friendly to just get one.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG